200 references to FromMilliseconds
HttpStress (1)
IIS.FunctionalTests (2)
IIS.LongTests (2)
IIS.NewHandler.FunctionalTests (2)
IIS.NewShim.FunctionalTests (2)
IIS.ShadowCopy.Tests (2)
IISExpress.FunctionalTests (2)
InMemory.FunctionalTests (3)
Interop.FunctionalTests (3)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Components.Server.Tests (8)
Microsoft.AspNetCore.Components.Tests (1)
Microsoft.AspNetCore.Cors.Test (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Http.Connections (4)
Microsoft.AspNetCore.Http.Connections.Tests (11)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.InternalTesting (5)
Microsoft.AspNetCore.InternalTesting.Tests (6)
Microsoft.AspNetCore.OutputCaching.Tests (13)
MemoryOutputCacheStoreTests.cs (13)
33await store.SetAsync(key, value, null, TimeSpan.FromMilliseconds(5), default);
34testClock.Advance(TimeSpan.FromMilliseconds(10));
48_ = await Assert.ThrowsAsync<ArgumentNullException>("key", () => store.SetAsync(key, value, null, TimeSpan.FromMilliseconds(5), default).AsTask());
58_ = await Assert.ThrowsAsync<ArgumentNullException>("value", () => store.SetAsync(key, value, null, TimeSpan.FromMilliseconds(5), default).AsTask());
159var cache = new MemoryCache(new MemoryCacheOptions { SizeLimit = 1000, Clock = testClock, ExpirationScanFrequency = TimeSpan.FromMilliseconds(1) });
163await store.SetAsync("a", value, new[] { "tag1" }, TimeSpan.FromMilliseconds(5), default);
164await store.SetAsync("b", value, new[] { "tag1", "tag2" }, TimeSpan.FromMilliseconds(5), default);
165await store.SetAsync("c", value, new[] { "tag2" }, TimeSpan.FromMilliseconds(20), default);
167testClock.Advance(TimeSpan.FromMilliseconds(10));
204var cache = new MemoryCache(new MemoryCacheOptions { SizeLimit = 1000, Clock = testClock, ExpirationScanFrequency = TimeSpan.FromMilliseconds(1) });
208await store.SetAsync("a", value, new[] { "tag1", "tag2" }, TimeSpan.FromMilliseconds(5), default);
209await store.SetAsync("a", value, new[] { "tag1" }, TimeSpan.FromMilliseconds(20), default);
211testClock.Advance(TimeSpan.FromMilliseconds(10));
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
Microsoft.AspNetCore.Session.Tests (1)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Client.Tests (9)
Microsoft.AspNetCore.SignalR.Specification.Tests (5)
Microsoft.AspNetCore.SignalR.Tests (14)
Microsoft.AspNetCore.WebSockets.Tests (2)
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (4)
Microsoft.Extensions.Http.Polly.Tests (1)
OutputCachingSample (1)
PresentationCore (10)
PresentationFramework (11)
RoutingSandbox (1)
Sockets.FunctionalTests (2)
System.ComponentModel.Annotations (2)
System.Net.Http (3)
System.Net.Quic (2)
System.Net.Requests (4)
System.Net.ServerSentEvents (1)
System.Net.WebSockets (1)
System.Private.CoreLib (11)
System.Runtime.Caching (2)
System.Text.Json (2)
System.Text.RegularExpressions (2)
System.Threading.RateLimiting (1)
System.Transactions.Local (1)
System.Windows.Controls.Ribbon (4)
System.Windows.Forms.Tests (1)
System.Windows.Forms.UI.IntegrationTests (2)
System.Windows.Presentation (1)
WindowsBase.Tests (12)
System\Windows\Threading\DispatcherTimerTests.cs (12)
62yield return new object?[] { TimeSpan.FromMilliseconds(0), DispatcherPriority.ApplicationIdle };
63yield return new object?[] { TimeSpan.FromMilliseconds(0), DispatcherPriority.Background };
64yield return new object?[] { TimeSpan.FromMilliseconds(int.MaxValue), DispatcherPriority.ContextIdle };
65yield return new object?[] { TimeSpan.FromMilliseconds(0), DispatcherPriority.DataBind };
66yield return new object?[] { TimeSpan.FromMilliseconds(1), DispatcherPriority.Input };
67yield return new object?[] { TimeSpan.FromMilliseconds(2), DispatcherPriority.Loaded };
68yield return new object?[] { TimeSpan.FromMilliseconds(3), DispatcherPriority.Normal };
69yield return new object?[] { TimeSpan.FromMilliseconds(4), DispatcherPriority.Render };
70yield return new object?[] { TimeSpan.FromMilliseconds(5), DispatcherPriority.Send };
71yield return new object?[] { TimeSpan.FromMilliseconds(6), DispatcherPriority.SystemIdle };
156yield return new object[] { TimeSpan.FromMilliseconds(1) };
157yield return new object[] { TimeSpan.FromMilliseconds(int.MaxValue) };