Found 5 packages
RouteMagic is a library of useful Routing helpers. See http://haacked.com/archive/2011/01/30/introducing-routemagic.aspx for more information.
RouteMagic.Mvc is a library of useful Routing helpers specific to ASP.NET MVC. See http://haacked.com/archive/2011/01/30/introducing-routemagic.aspx for more information.
Adds RedirectRouteExtended class which handles query strings in redirects, and allows for a specified Action to call during redirects, which may be helpful during logging.
Finds routes in WebAPI without magic strings using lambda expressions.
Add Component.As.Service to your AspNetCore app in the usual way and behold as your application component is exposed to the world at `http://localhost:5000/MyApplicationComponent/MethodName?parameterA=a¶meterB=B` ``` public class Startup { public void ConfigureServices(IServiceCollection services) { services /* .AddMvc() here if you required MvcOptions */ .AddComponentAsService(); } public void Configure(IApplicationBuilder app, IHostingEnvironment env) { app /* .UseMvc() here if you require custom Mvc configuration */ .UseComponentAsService<MyApplicationComponent>(); } } ``` ### Q&A * And form post and json post and complex objects? Yes. Anything that Mvc can normally deliver to an Action by the magic of ModelBinding will be delivered to your component method. * What about Route Constraints and REST and things? For sophisticated HTTP-specific concerns, write a traditional MVC Controller which takes your Component as a dependency. * Really? Yes really. This is very much a 'Keep it Simple' offer.