3 instantiations of RouterMiddleware
Microsoft.AspNetCore.Routing.Tests (3)
RouterMiddlewareTest.cs (3)
54
var middleware = new
RouterMiddleware
(context => Task.CompletedTask, NullLoggerFactory.Instance, route);
85
var middleware = new
RouterMiddleware
(next, loggerFactory, router);
116
var middleware = new
RouterMiddleware
(next, loggerFactory, router);
13 references to RouterMiddleware
Microsoft.AspNetCore.Routing (6)
Builder\RoutingBuilderExtensions.cs (4)
10
/// Extension methods for adding the <see cref="
RouterMiddleware
"/> middleware to an <see cref="IApplicationBuilder"/>.
15
/// Adds a <see cref="
RouterMiddleware
"/> middleware to the specified <see cref="IApplicationBuilder"/> with the specified <see cref="IRouter"/>.
33
return builder.UseMiddleware<
RouterMiddleware
>(router);
37
/// Adds a <see cref="
RouterMiddleware
"/> middleware to the specified <see cref="IApplicationBuilder"/>
RouterMiddleware.cs (2)
20
/// Constructs a new <see cref="
RouterMiddleware
"/> instance with a given <paramref name="router"/>.
33
_logger = loggerFactory.CreateLogger<
RouterMiddleware
>();
Microsoft.AspNetCore.Routing.Tests (7)
RouterMiddlewareTest.cs (7)
54
var
middleware = new RouterMiddleware(context => Task.CompletedTask, NullLoggerFactory.Instance, route);
72
TestSink.EnableWithTypeName<
RouterMiddleware
>,
73
TestSink.EnableWithTypeName<
RouterMiddleware
>);
85
var
middleware = new RouterMiddleware(next, loggerFactory, router);
103
TestSink.EnableWithTypeName<
RouterMiddleware
>,
104
TestSink.EnableWithTypeName<
RouterMiddleware
>);
116
var
middleware = new RouterMiddleware(next, loggerFactory, router);