You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
I have a standard class library that provides ASP.NET specific utility methods that are independent from the app specific logic of concrete ASP.NET projects. For example I have a bunch of extension methods for HttpRequest.
Would it be possible to move IUrlHelper to an abstractions assembly so I can implement utility methods outside of the web project that require an IUrlHelper? Otherwise I have to implement my own IUrlHelper interface in my class library and then a class in my web project that implements it and that is a wrapper around the real IUrlHelper.
I can use IActionResult in a standard class library for instance. It would be nice if this was possible with IUrlHelper too.
The text was updated successfully, but these errors were encountered:
I just saw that UrlRouteContext and UrlActionContext which IUrlHelper uses are also not inside Microsoft.AspNetCore.Mvc.Abstractions so my wrapper workaround cannot be implemented that easily. Also this means moving only IUrlHelper into Microsoft.AspNetCore.Mvc.Abstractions won't work then I guess.
I have a standard class library that provides ASP.NET specific utility methods that are independent from the app specific logic of concrete ASP.NET projects. For example I have a bunch of extension methods for
HttpRequest
.Would it be possible to move
IUrlHelper
to an abstractions assembly so I can implement utility methods outside of the web project that require anIUrlHelper
? Otherwise I have to implement my ownIUrlHelper
interface in my class library and then a class in my web project that implements it and that is a wrapper around the realIUrlHelper
.I can use
IActionResult
in a standard class library for instance. It would be nice if this was possible withIUrlHelper
too.The text was updated successfully, but these errors were encountered: