5 references to AddPolicy
Microsoft.AspNetCore.Http (1)
Timeouts\RequestTimeoutOptions.cs (1)
29
return
AddPolicy
(policyName, new RequestTimeoutPolicy
Microsoft.AspNetCore.Http.Tests (4)
Timeouts\RequestTimeoutOptionsTests.cs (4)
29
options.
AddPolicy
("policy1", addedPolicy);
52
Assert.Throws<ArgumentException>(() => options.
AddPolicy
("", new RequestTimeoutPolicy()));
53
Assert.Throws<ArgumentNullException>(() => options.
AddPolicy
(null, new RequestTimeoutPolicy()));
55
Assert.Throws<ArgumentNullException>(() => options.
AddPolicy
("policy1", null));