Base:
53 references to GetTimestamp
InMemory.FunctionalTests (12)
Http2\Http2TestBase.cs (2)
1387var timestamp = _serviceContext.FakeTimeProvider.GetTimestamp(); 1402timeProvider.Advance(timeProvider.GetElapsedTime(timeProvider.GetTimestamp(), endTime));
Http3\Http3TimeoutTests.cs (6)
130var timestamp = timeProvider.GetTimestamp(); 164var timestamp = _serviceContext.FakeTimeProvider.GetTimestamp(); 218var timestamp = timeProvider.GetTimestamp(); 245var timestamp = timeProvider.GetTimestamp(); 467Http3Api._timeoutControl.Tick(fakeTimeProvider.GetTimestamp()); 509Http3Api._timeoutControl.Tick(fakeTimeProvider.GetTimestamp());
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (4)
212_timeoutControl.Tick(timeProvider.GetTimestamp()); 215timeProvider.Advance(timeProvider.GetElapsedTime(timeProvider.GetTimestamp(), endTime)); 216_timeoutControl.Tick(timeProvider.GetTimestamp()); 222var timestamp = _fakeTimeProvider.GetTimestamp();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (25)
TimeoutControlTests.cs (25)
31var now = _timeProvider.GetTimestamp(); 66var now = _timeProvider.GetTimestamp(); 98var now = _timeProvider.GetTimestamp(); 165_timeoutControl.Tick(_timeProvider.GetTimestamp()); 167_timeoutControl.Tick(_timeProvider.GetTimestamp()); 170_timeoutControl.Tick(_timeProvider.GetTimestamp()); 178_timeoutControl.Tick(_timeProvider.GetTimestamp()); 182_timeoutControl.Tick(_timeProvider.GetTimestamp()); 193_timeoutControl.Tick(_timeProvider.GetTimestamp()); 195_timeoutControl.Tick(_timeProvider.GetTimestamp()); 202_timeoutControl.Tick(_timeProvider.GetTimestamp()); 221_timeoutControl.Tick(_timeProvider.GetTimestamp()); 223_timeoutControl.Tick(_timeProvider.GetTimestamp()); 240_timeoutControl.Tick(_timeProvider.GetTimestamp()); 247_timeoutControl.Tick(_timeProvider.GetTimestamp()); 270_timeoutControl.Tick(_timeProvider.GetTimestamp()); 277_timeoutControl.Tick(_timeProvider.GetTimestamp()); 291var now = _timeProvider.GetTimestamp(); 337var now = _timeProvider.GetTimestamp(); 471_timeoutControl.Tick(_timeProvider.GetTimestamp()); 490_timeoutControl.Tick(_timeProvider.GetTimestamp()); 517_timeoutControl.Tick(_timeProvider.GetTimestamp()); 527_timeoutControl.Tick(_timeProvider.GetTimestamp()); 530_timeProvider.Advance(_timeProvider.GetElapsedTime(_timeProvider.GetTimestamp(), endTime)); 531_timeoutControl.Tick(_timeProvider.GetTimestamp());
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (4)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (4)
212_timeoutControl.Tick(timeProvider.GetTimestamp()); 215timeProvider.Advance(timeProvider.GetElapsedTime(timeProvider.GetTimestamp(), endTime)); 216_timeoutControl.Tick(timeProvider.GetTimestamp()); 222var timestamp = _fakeTimeProvider.GetTimestamp();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
QuicConnectionContextTests.cs (2)
528Assert.Equal(timeProvider.GetTimestamp() + QuicConnectionContext.StreamPoolExpirySeconds * timeProvider.TimestampFrequency, pooledStream.PoolExpirationTimestamp); 540Assert.Equal(timeProvider.GetTimestamp() + QuicConnectionContext.StreamPoolExpirySeconds * timeProvider.TimestampFrequency, pooledStream.PoolExpirationTimestamp);
Microsoft.Extensions.TimeProvider.Testing (1)
FakeTimeProvider.cs (1)
191/// Gets the amount by which the value from <see cref="GetTimestamp"/> increments per second.
Microsoft.Extensions.TimeProvider.Testing.Tests (9)
FakeTimeProviderTests.cs (8)
21var timestamp = timeProvider.GetTimestamp(); 35var timestamp2 = timeProvider.GetTimestamp(); 50var pnow = timeProvider.GetTimestamp(); 66var pnow2 = timeProvider.GetTimestamp(); 109var initialTimestamp = timeProvider.GetTimestamp(); 114var finalTimeTimestamp = timeProvider.GetTimestamp(); 133var initialTimestamp = timeProvider.GetTimestamp(); 138var finalTimeTimestamp = timeProvider.GetTimestamp();
TimerTests.cs (1)
327var startTime = timeProvider.GetTimestamp();