5 instantiations of MapWhenMiddleware
Microsoft.AspNetCore.Http.Abstractions (1)
Extensions\MapWhenExtensions.cs (1)
40return app.Use(next => new MapWhenMiddleware(next, options).Invoke);
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
MapPredicateMiddlewareTests.cs (4)
53Assert.Throws<ArgumentNullException>(() => new MapWhenMiddleware(null!, noOptions)); 54Assert.Throws<ArgumentNullException>(() => new MapWhenMiddleware(noMiddleware, null!)); 55Assert.Throws<ArgumentNullException>(() => new MapWhenMiddleware(null!, noOptions)); 56Assert.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"/>.