5 instantiations of MapWhenMiddleware
Microsoft.AspNetCore.Http.Abstractions (1)
Extensions\MapWhenExtensions.cs (1)
40
return app.Use(next => new
MapWhenMiddleware
(next, options).Invoke);
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
MapPredicateMiddlewareTests.cs (4)
53
Assert.Throws<ArgumentNullException>(() => new
MapWhenMiddleware
(null!, noOptions));
54
Assert.Throws<ArgumentNullException>(() => new
MapWhenMiddleware
(noMiddleware, null!));
55
Assert.Throws<ArgumentNullException>(() => new
MapWhenMiddleware
(null!, noOptions));
56
Assert.Throws<ArgumentNullException>(() => new
MapWhenMiddleware
(noMiddleware, null!));
3 references to MapWhenMiddleware
Microsoft.AspNetCore.Http.Abstractions (3)
Extensions\MapWhenExtensions.cs (1)
12
/// Extension methods for the <see cref="
MapWhenMiddleware
"/>.
Extensions\MapWhenMiddleware.cs (1)
17
/// Creates a new instance of <see cref="
MapWhenMiddleware
"/>.
Extensions\MapWhenOptions.cs (1)
9
/// Options for the <see cref="
MapWhenMiddleware
"/>.