133 references to Increment
BasicWebSite (1)
ActionDescriptorCreationCounter.cs (1)
41Interlocked.Increment(ref _callCount);
Client.ExpectedExceptions.IntegrationTests (2)
ExpectedExceptionTests.4.0.0.cs (1)
300Interlocked.Increment(ref operationsQueued);
ExpectedExceptionTests.4.1.0.cs (1)
550Interlocked.Increment(ref operationsQueued);
dotnet-svcutil-lib (4)
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUniqueId.cs (1)
33return new SecurityUniqueId(prefix, Interlocked.Increment(ref s_nextId));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UriGenerator.cs (1)
38long nextId = Interlocked.Increment(ref _id);
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (1)
288return Interlocked.Increment(ref TraceUtility.s_messageNumber);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
1036return new SecurityUniqueId(prefix, Interlocked.Increment(ref s_nextId));
HttpStress (3)
Program.cs (3)
534Interlocked.Increment(ref counter); 535Interlocked.Increment(ref total); 599Interlocked.Increment(ref reuseAddressFailure);
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
16public static string GetNextId() => GenerateId(Interlocked.Increment(ref _lastId));
Microsoft.AspNetCore.Components (1)
ElementReference.cs (1)
61var id = Interlocked.Increment(ref _nextIdForWebAssemblyOnly);
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteRenderer.cs (1)
167var renderId = Interlocked.Increment(ref _nextRenderId);
Microsoft.AspNetCore.ConcurrencyLimiter (1)
ConcurrencyLimiterEventSource.cs (1)
38Interlocked.Increment(ref _rejectedRequests);
Microsoft.AspNetCore.Hosting (3)
Internal\HostingEventSource.cs (3)
55Interlocked.Increment(ref _totalRequests); 56Interlocked.Increment(ref _currentRequests); 84Interlocked.Increment(ref _failedRequests);
Microsoft.AspNetCore.Http (1)
Features\HttpRequestIdentifierFeature.cs (1)
28_id = GenerateRequestId(Interlocked.Increment(ref _requestId));
Microsoft.AspNetCore.Http.Connections (4)
Internal\HttpConnectionsEventSource.cs (4)
40Interlocked.Increment(ref _connectionsStopped); 58Interlocked.Increment(ref _connectionsStarted); 59Interlocked.Increment(ref _currentConnections); 73Interlocked.Increment(ref _connectionsTimedOut);
Microsoft.AspNetCore.ResponseCaching (1)
FastGuid.cs (1)
50return new FastGuid(Interlocked.Increment(ref NextId));
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\Infrastructure\ConnectionManager.cs (1)
29public long GetNewConnectionId() => Interlocked.Increment(ref _lastConnectionId);
Internal\Infrastructure\KestrelEventSource.cs (8)
58Interlocked.Increment(ref _totalConnections); 59Interlocked.Increment(ref _currentConnections); 159Interlocked.Increment(ref _connectionQueueLength); 171Interlocked.Increment(ref _currentTlsHandshakes); 172Interlocked.Increment(ref _totalTlsHandshakes); 214Interlocked.Increment(ref _failedTlsHandshakes); 280Interlocked.Increment(ref _httpRequestQueueLength); 292Interlocked.Increment(ref _currentUpgradedHttpRequests);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
16public static string GetNextId() => GenerateId(Interlocked.Increment(ref _lastId));
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
16public static string GetNextId() => GenerateId(Interlocked.Increment(ref _lastId));
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
16public static string GetNextId() => GenerateId(Interlocked.Increment(ref _lastId));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
16public static string GetNextId() => GenerateId(Interlocked.Increment(ref _lastId));
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
SocketConnectionContextFactory.cs (1)
90var setting = _settings[Interlocked.Increment(ref _settingsIndex) % _settingsCount];
src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
16public static string GetNextId() => GenerateId(Interlocked.Increment(ref _lastId));
Microsoft.Build (1)
Graph\ParallelWorkSet.cs (1)
119Interlocked.Increment(ref _pendingCount);
Microsoft.Build.Framework (1)
Profiler\EvaluationIdProvider.cs (1)
30var nextId = Interlocked.Increment(ref _sAssignedId);
Microsoft.CodeAnalysis (1)
Syntax\SyntaxAnnotation.cs (1)
34_id = System.Threading.Interlocked.Increment(ref s_nextId);
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
242Interlocked.Increment(ref GetStats().Hits); 263Interlocked.Increment(ref GetStats().Misses);
Microsoft.Extensions.Configuration (1)
ReferenceCountedProviders.cs (1)
64Interlocked.Increment(ref _refCount);
Microsoft.Extensions.Telemetry (1)
Latency\Internal\LatencyConsoleExporter.cs (1)
48var cnt = Interlocked.Increment(ref _sampleCount);
Microsoft.JSInterop (3)
JSRuntime.cs (3)
104var taskId = Interlocked.Increment(ref _nextPendingTaskId); 286var streamId = Interlocked.Increment(ref _nextObjectReferenceId); 304var dotNetObjectId = Interlocked.Increment(ref _nextObjectReferenceId);
Microsoft.Maui.Controls (1)
Performance.cs (1)
41 reference = Interlocked.Increment(ref Reference).ToString();
Microsoft.ML.Data (6)
DataLoadSave\Binary\BinaryLoader.cs (1)
1394long seq = Interlocked.Increment(ref decompressSequence);
DataLoadSave\Text\TextLoaderParser.cs (4)
180Interlocked.Increment(ref _rowCount); 185long n = Interlocked.Increment(ref _badCount); 196long n = Interlocked.Increment(ref _badCount); 207long n = Interlocked.Increment(ref _fmtCount);
DataView\CacheDataView.cs (1)
930return Interlocked.Increment(ref _c);
Microsoft.ML.FastTree (1)
SumupPerformanceCommand.cs (1)
306Interlocked.Increment(ref completed);
PresentationCore (3)
MS\Internal\FontCache\BufferCache.cs (3)
39if (Interlocked.Increment(ref _mutex) == 1) 168if (Interlocked.Increment(ref _mutex) == 1) 196if (Interlocked.Increment(ref _mutex) == 1)
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentBag.cs (1)
819Interlocked.Increment(ref emptyToNonEmptyListTransitionCount);
System.Data.Common (1)
System\Data\Common\DataCommonEventSource.cs (1)
75scopeId = Interlocked.Increment(ref s_nextScopeId);
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Activity.cs (1)
1346ret = AppendSuffix(parentId, Interlocked.Increment(ref s_currentRootId).ToString("x"), '_');
System\Diagnostics\Activity.GenerateRootId.netcoreapp.cs (1)
19bool formatted = Interlocked.Increment(ref s_currentRootId).TryFormat(result.Slice(1), out int charsWritten, "x");
System.Net.Http (8)
System\Net\Http\HttpTelemetry.cs (6)
40Interlocked.Increment(ref _startedRequests); 76Interlocked.Increment(ref _stoppedRequests); 83Interlocked.Increment(ref _failedRequests); 209Interlocked.Increment(ref _openedHttp11Connections); 224Interlocked.Increment(ref _openedHttp20Connections); 239Interlocked.Increment(ref _openedHttp30Connections);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
2130long pingPayload = Interlocked.Increment(ref _keepAlivePingPayload);
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (1)
39public long Id { get; } = Interlocked.Increment(ref s_connectionCounter);
System.Net.NameResolution (2)
System\Net\NameResolutionTelemetry.cs (2)
74Interlocked.Increment(ref _lookupsRequested); 75Interlocked.Increment(ref _currentLookups);
System.Net.Security (6)
System\Net\Security\NetSecurityTelemetry.cs (6)
135Interlocked.Increment(ref _startedTlsHandshakes); 163Interlocked.Increment(ref _finishedTlsHandshakes); 164Interlocked.Increment(ref _failedTlsHandshakes); 177Interlocked.Increment(ref _finishedTlsHandshakes); 212Interlocked.Increment(ref protocolSessionsOpen); 213Interlocked.Increment(ref _sessionsOpen);
System.Net.Sockets (5)
System\Net\Sockets\SocketsTelemetry.cs (5)
86Interlocked.Increment(ref _currentOutgoingConnectAttempts); 164Interlocked.Increment(ref _outgoingConnectionsEstablished); 198Interlocked.Increment(ref _incomingConnectionsEstablished); 225Interlocked.Increment(ref _datagramsReceived); 231Interlocked.Increment(ref _datagramsSent);
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ActivityTracker.cs (3)
100id = Interlocked.Increment(ref m_nextId); 102id = Interlocked.Increment(ref currentActivity.m_lastChildID); 387uint id = unchecked((uint)Interlocked.Increment(ref ancestor.m_lastChildID)); // Get a unique ID
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeHandle.cs (1)
117long count = Interlocked.Increment(ref s_safeHandlesFinalized);
src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (1)
488Interlocked.Increment(ref s_contentionCount);
src\libraries\System.Private.CoreLib\src\System\Threading\ReaderWriterLockSlim.cs (1)
141_lockID = Interlocked.Increment(ref s_nextLockID);
src\System\Runtime\InteropServices\ComWrappers.cs (1)
117private readonly long id = Interlocked.Increment(ref s_instanceCounter);
System.Private.Xml (1)
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
277System.Threading.Interlocked.Increment(ref s_assemblyId);
System.Runtime.Caching (1)
System\Runtime\Caching\Counters.cs (1)
92Interlocked.Increment(ref _counterValues[idx]);
System.ServiceModel.Syndication (1)
System\ServiceModel\Channels\UriGenerator.cs (1)
21long nextId = Interlocked.Increment(ref _id);
System.Threading (1)
System\Threading\ReaderWriterLock.cs (1)
49_lockID = Interlocked.Increment(ref s_mostRecentLockID);
System.Threading.RateLimiting (38)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (9)
94Interlocked.Increment(ref _successfulLeasesCount); 97Interlocked.Increment(ref _failedLeasesCount); 113Interlocked.Increment(ref _failedLeasesCount); 129Interlocked.Increment(ref _successfulLeasesCount); 171Interlocked.Increment(ref _failedLeasesCount); 179Interlocked.Increment(ref _failedLeasesCount); 203Interlocked.Increment(ref _successfulLeasesCount); 216Interlocked.Increment(ref _successfulLeasesCount); 303Interlocked.Increment(ref _successfulLeasesCount);
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (9)
115Interlocked.Increment(ref _successfulLeasesCount); 119Interlocked.Increment(ref _failedLeasesCount); 130Interlocked.Increment(ref _failedLeasesCount); 149Interlocked.Increment(ref _successfulLeasesCount); 189Interlocked.Increment(ref _failedLeasesCount); 197Interlocked.Increment(ref _failedLeasesCount); 230Interlocked.Increment(ref _successfulLeasesCount); 243Interlocked.Increment(ref _successfulLeasesCount); 358Interlocked.Increment(ref _successfulLeasesCount);
System\Threading\RateLimiting\NoopLimiter.cs (2)
32Interlocked.Increment(ref _totalSuccessfulLeases); 38Interlocked.Increment(ref _totalSuccessfulLeases);
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (9)
126Interlocked.Increment(ref _successfulLeasesCount); 130Interlocked.Increment(ref _failedLeasesCount); 142Interlocked.Increment(ref _failedLeasesCount); 161Interlocked.Increment(ref _successfulLeasesCount); 201Interlocked.Increment(ref _failedLeasesCount); 209Interlocked.Increment(ref _failedLeasesCount); 233Interlocked.Increment(ref _successfulLeasesCount); 247Interlocked.Increment(ref _successfulLeasesCount); 371Interlocked.Increment(ref _successfulLeasesCount);
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (9)
120Interlocked.Increment(ref _successfulLeasesCount); 124Interlocked.Increment(ref _failedLeasesCount); 135Interlocked.Increment(ref _failedLeasesCount); 154Interlocked.Increment(ref _successfulLeasesCount); 194Interlocked.Increment(ref _failedLeasesCount); 202Interlocked.Increment(ref _failedLeasesCount); 237Interlocked.Increment(ref _successfulLeasesCount); 250Interlocked.Increment(ref _successfulLeasesCount); 372Interlocked.Increment(ref _successfulLeasesCount);