4 references to FromMicroseconds
Microsoft.AspNetCore.Http.Microbenchmarks (2)
RequestTimeoutsMiddlewareBenchmark.cs (2)
45
await Task.Delay(TimeSpan.
FromMicroseconds
(2));
54
Timeout = TimeSpan.
FromMicroseconds
(1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCacheTests.cs (1)
232
DefaultExpirationTimeSpan = TimeSpan.
FromMicroseconds
(100)
Microsoft.AspNetCore.WebSockets.Tests (1)
AddWebSocketsTests.cs (1)
36
Assert.Throws<ArgumentOutOfRangeException>(() => new WebSocketOptions() { KeepAliveTimeout = TimeSpan.
FromMicroseconds
(-1) });