27 references to Read
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\DiagnosticSourceSubscriber.cs (1)
54if ((Interlocked.Read(ref this.disposed) == 0) &&
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\DiagnosticSourceSubscriber.cs (1)
54if ((Interlocked.Read(ref this.disposed) == 0) &&
BasicWebSite (1)
ActionDescriptorCreationCounter.cs (1)
16var callCount = Interlocked.Read(ref _callCount);
Client.ExpectedExceptions.IntegrationTests (2)
ExpectedExceptionTests.4.0.0.cs (1)
281if (Interlocked.Read(ref operationsQueued) >= operationCount)
ExpectedExceptionTests.4.1.0.cs (1)
535if (Interlocked.Read(ref operationsQueued) >= operationCount)
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\Http3\Http3Connection.cs (1)
92private long GetCurrentGoAwayStreamId() => Interlocked.Read(ref _highestOpenedRequestStreamId) + 4;
Internal\Infrastructure\TimeoutControl.cs (4)
64if (timestamp > Interlocked.Read(ref _timeoutTimestamp)) 80if (Interlocked.Read(ref _timeoutTimestamp) != long.MaxValue) 192Interlocked.Exchange(ref _timeoutTimestamp, Interlocked.Read(ref _lastTimestamp) + timeoutTicks + _heartbeatIntervalTicks); 289var currentTimeUpperBound = Interlocked.Read(ref _lastTimestamp) + _heartbeatIntervalTicks;
System.Collections.Concurrent (2)
System\Collections\Concurrent\ConcurrentBag.cs (2)
207long initialEmptyToNonEmptyCounts = Interlocked.Read(ref _emptyToNonEmptyListTransitionCount); 227if (Interlocked.Read(ref _emptyToNonEmptyListTransitionCount) == initialEmptyToNonEmptyCounts)
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\RateLimiter.cs (1)
45long intervalStartTicks = Interlocked.Read(ref _intervalStartTicks);
System.Threading.RateLimiting (9)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (2)
70TotalFailedLeases = Interlocked.Read(ref _failedLeasesCount), 71TotalSuccessfulLeases = Interlocked.Read(ref _successfulLeasesCount),
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (2)
90TotalFailedLeases = Interlocked.Read(ref _failedLeasesCount), 91TotalSuccessfulLeases = Interlocked.Read(ref _successfulLeasesCount),
System\Threading\RateLimiting\NoopLimiter.cs (1)
26TotalSuccessfulLeases = Interlocked.Read(ref _totalSuccessfulLeases)
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (2)
104TotalFailedLeases = Interlocked.Read(ref _failedLeasesCount), 105TotalSuccessfulLeases = Interlocked.Read(ref _successfulLeasesCount),
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (2)
98TotalFailedLeases = Interlocked.Read(ref _failedLeasesCount), 99TotalSuccessfulLeases = Interlocked.Read(ref _successfulLeasesCount),
System.Transactions.Local (5)
System\Transactions\TransactionManager.cs (5)
305if (Interlocked.Read(ref s_defaultTimeoutTicks) != DefaultSettingsSection.Timeout.Ticks) 318return new TimeSpan(Interlocked.Read(ref s_defaultTimeoutTicks)); 329if (Interlocked.Read(ref s_defaultTimeoutTicks) != value.Ticks) 382long defaultTimeoutTicks = Interlocked.Read(ref s_defaultTimeoutTicks); 384if (Interlocked.Read(ref s_defaultTimeoutTicks) != defaultTimeoutTicks)