Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static IRouter CreateAttributeMegaRoute(IServiceProvider services)
- {
- if (services == null)
- {
- throw new ArgumentNullException(nameof(services));
- }
- return new AttributeRoute(
- services.GetRequiredService<IActionDescriptorCollectionProvider>(),
- services,
- actions =>
- {
- var handler = services.GetRequiredService<MvcAttributeRouteHandler>();
- handler.Actions = actions;
- return handler;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement