8 references to UseWhen
Microsoft.AspNetCore.Http.Abstractions.Tests (7)
UseWhenExtensionsTests.cs (7)
17
Action nullPredicate = () => builder.
UseWhen
(null!, app => { });
18
Action nullConfiguration = () => builder.
UseWhen
(TruePredicate, null!);
32
parent.
UseWhen
(TruePredicate, child =>
34
child.
UseWhen
(TruePredicate, grandchild =>
60
parent.
UseWhen
(TruePredicate, child =>
62
child.
UseWhen
(TruePredicate, grandchild =>
88
parent.
UseWhen
(FalsePredicate, child =>
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
2786
app.
UseWhen
(c => false, nested =>