165 references to Increment
aspire (1)
DotNet\DotNetCliRunner.cs (1)
350var sequence = Interlocked.Increment(ref s_binlogSequence);
Aspire.Dashboard (6)
Components\Dialogs\FilterDialog.razor.cs (1)
202var updateVersion = Interlocked.Increment(ref _fieldValuesUpdateVersion);
Components\Dialogs\GenAIVisualizerDialog.razor.cs (3)
94Interlocked.Increment(ref _contentUpdateVersion); 259var updateVersion = Interlocked.Increment(ref _contentUpdateVersion); 378Interlocked.Increment(ref _contentUpdateVersion);
Components\Pages\TraceDetail.razor.cs (2)
247var updateVersion = Interlocked.Increment(ref _detailViewUpdateVersion); 732Interlocked.Increment(ref _detailViewUpdateVersion);
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
214return new OtlpLogEntryData(record, resourceView, scope, context).CreateLogEntry(Interlocked.Increment(ref s_nextLogEntryId));
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
214return new OtlpLogEntryData(record, resourceView, scope, context).CreateLogEntry(Interlocked.Increment(ref s_nextLogEntryId));
Aspire.Hosting.Browsers (2)
BrowserLogsCdpConnection.cs (1)
233var commandId = Interlocked.Increment(ref _nextCommandId);
BrowserLogsCdpConnectionMultiplexer.cs (1)
41var subscriptionId = Interlocked.Increment(ref _nextSubscriptionId);
Aspire.Hosting.Browsers.Tests (2)
src\Aspire.Hosting.Browsers\BrowserLogsCdpConnection.cs (1)
233var commandId = Interlocked.Increment(ref _nextCommandId);
src\Aspire.Hosting.Browsers\BrowserLogsCdpConnectionMultiplexer.cs (1)
41var subscriptionId = Interlocked.Increment(ref _nextSubscriptionId);
Aspire.Hosting.RemoteHost (1)
Ats\HandleRegistry.cs (1)
37var instanceId = Interlocked.Increment(ref _idCounter);
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));
Microsoft.AspNetCore.Components (1)
ElementReference.cs (1)
61var id = Interlocked.Increment(ref _nextIdForWebAssemblyOnly);
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteRenderer.cs (1)
168var renderId = Interlocked.Increment(ref _nextRenderId);
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.Transport.DirectTls (2)
ConnectionTracker.cs (1)
72if (Interlocked.Increment(ref _handshakeCount) <= _maxHandshakes)
src\aspnetcore\src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
16public static string GetNextId() => GenerateId(Interlocked.Increment(ref _lastId));
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\aspnetcore\src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
16public static string GetNextId() => GenerateId(Interlocked.Increment(ref _lastId));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\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\aspnetcore\src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
16public static string GetNextId() => GenerateId(Interlocked.Increment(ref _lastId));
Microsoft.AspNetCore.SignalR.Core (1)
StreamTracker.cs (1)
29return Interlocked.Increment(ref _nextStreamOwner);
Microsoft.Build (1)
Graph\ParallelWorkSet.cs (1)
119Interlocked.Increment(ref _pendingCount);
Microsoft.Build.Framework (1)
Profiler\EvaluationIdProvider.cs (1)
27var nextId = Interlocked.Increment(ref _sAssignedId);
Microsoft.CodeAnalysis.Workspaces (1)
Remote\IRemoteKeepAliveService.cs (1)
46private long SessionId { get; } = Interlocked.Increment(ref s_sessionId);
Microsoft.Extensions.Caching.Hybrid (11)
Internal\HybridCacheEventSource.cs (11)
72_ = Interlocked.Increment(ref _totalLocalCacheHit); 80_ = Interlocked.Increment(ref _totalLocalCacheMiss); 89_ = Interlocked.Increment(ref _currentDistributedFetch); 100_ = Interlocked.Increment(ref _totalDistributedCacheHit); 112_ = Interlocked.Increment(ref _totalDistributedCacheMiss); 138_ = Interlocked.Increment(ref _totalUnderlyingDataQuery); 139_ = Interlocked.Increment(ref _currentUnderlyingDataQuery); 171_ = Interlocked.Increment(ref _totalLocalCacheWrite); 179_ = Interlocked.Increment(ref _totalDistributedCacheWrite); 187_ = Interlocked.Increment(ref _totalStampedeJoin); 195_ = Interlocked.Increment(ref _totalTagInvalidations);
Microsoft.Extensions.Caching.Memory (5)
MemoryCache.cs (5)
324Interlocked.Increment(ref GetStats().Hits); 336Interlocked.Increment(ref _accumulatedEvictions); 348Interlocked.Increment(ref GetStats().Misses); 421Interlocked.Increment(ref _accumulatedEvictions); 534Interlocked.Increment(ref _accumulatedEvictions);
Microsoft.Extensions.Configuration (1)
ReferenceCountedProviders.cs (1)
64Interlocked.Increment(ref _refCount);
Microsoft.Extensions.Telemetry (1)
Latency\Internal\LatencyConsoleExporter.cs (1)
47var cnt = Interlocked.Increment(ref _sampleCount);
Microsoft.JSInterop (3)
JSRuntime.cs (3)
142var taskId = Interlocked.Increment(ref _nextPendingTaskId); 337var streamId = Interlocked.Increment(ref _nextObjectReferenceId); 355var 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);
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
ObjectModel\TestResultAggregation.cs (1)
59return Interlocked.Increment(ref _innerResultCount);
PresentationCore (3)
MS\Internal\FontCache\BufferCache.cs (3)
38if (Interlocked.Increment(ref _mutex) == 1) 167if (Interlocked.Increment(ref _mutex) == 1) 195if (Interlocked.Increment(ref _mutex) == 1)
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentBag.cs (1)
813Interlocked.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)
1381ret = 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.Diagnostics.PerformanceCounter (2)
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (1)
54Interlocked.Increment(ref (*_offset));
System\Diagnostics\SharedPerformanceCounter.cs (1)
1600return Interlocked.Increment(ref counterEntry->Value);
System.Net.Http (8)
System\Net\Http\HttpTelemetry.cs (6)
40Interlocked.Increment(ref _startedRequests); 71Interlocked.Increment(ref _stoppedRequests); 78Interlocked.Increment(ref _failedRequests); 195Interlocked.Increment(ref _openedHttp11Connections); 210Interlocked.Increment(ref _openedHttp20Connections); 225Interlocked.Increment(ref _openedHttp30Connections);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
2255long pingPayload = Interlocked.Increment(ref _keepAlivePingPayload);
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (1)
88internal static long GetNextConnectionId() => 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); 171Interlocked.Increment(ref _outgoingConnectionsEstablished); 205Interlocked.Increment(ref _incomingConnectionsEstablished); 232Interlocked.Increment(ref _datagramsReceived); 238Interlocked.Increment(ref _datagramsSent);
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ActivityTracker.cs (3)
101id = Interlocked.Increment(ref m_nextId); 103id = Interlocked.Increment(ref currentActivity.m_lastChildID); 388uint id = unchecked((uint)Interlocked.Increment(ref ancestor.m_lastChildID)); // Get a unique ID
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (1)
562Interlocked.Increment(ref s_contentionCount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ReaderWriterLockSlim.cs (1)
141_lockID = Interlocked.Increment(ref s_nextLockID);
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)
149internal void Increment(CounterName name) => Interlocked.Increment(ref GetCounterRef(name));
System.ServiceModel.Primitives (5)
Internals\System\Xml\XmlMtomWriter.cs (1)
1055long nextId = Interlocked.Increment(ref id);
System\IdentityModel\SecurityUniqueId.cs (1)
33return new SecurityUniqueId(prefix, Interlocked.Increment(ref s_nextId));
System\ServiceModel\Channels\UriGenerator.cs (1)
43long nextId = Interlocked.Increment(ref _id);
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
497return Interlocked.Increment(ref TraceUtility.s_messageNumber);
System\ServiceModel\Security\SecurityUtils.cs (1)
1069return new SecurityUniqueId(prefix, Interlocked.Increment(ref s_nextId));
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 (39)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (9)
91Interlocked.Increment(ref _successfulLeasesCount); 94Interlocked.Increment(ref _failedLeasesCount); 110Interlocked.Increment(ref _failedLeasesCount); 126Interlocked.Increment(ref _successfulLeasesCount); 168Interlocked.Increment(ref _failedLeasesCount); 176Interlocked.Increment(ref _failedLeasesCount); 200Interlocked.Increment(ref _successfulLeasesCount); 213Interlocked.Increment(ref _successfulLeasesCount); 300Interlocked.Increment(ref _successfulLeasesCount);
System\Threading\RateLimiting\FixedWindowRateLimiter.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); 241Interlocked.Increment(ref _successfulLeasesCount); 254Interlocked.Increment(ref _successfulLeasesCount); 369Interlocked.Increment(ref _successfulLeasesCount);
System\Threading\RateLimiting\NoopLimiter.cs (2)
32Interlocked.Increment(ref _totalSuccessfulLeases); 38Interlocked.Increment(ref _totalSuccessfulLeases);
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (10)
130Interlocked.Increment(ref _successfulLeasesCount); 139Interlocked.Increment(ref _successfulLeasesCount); 143Interlocked.Increment(ref _failedLeasesCount); 156Interlocked.Increment(ref _failedLeasesCount); 176Interlocked.Increment(ref _successfulLeasesCount); 216Interlocked.Increment(ref _failedLeasesCount); 224Interlocked.Increment(ref _failedLeasesCount); 293Interlocked.Increment(ref _successfulLeasesCount); 307Interlocked.Increment(ref _successfulLeasesCount); 431Interlocked.Increment(ref _successfulLeasesCount);
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (9)
117Interlocked.Increment(ref _successfulLeasesCount); 121Interlocked.Increment(ref _failedLeasesCount); 132Interlocked.Increment(ref _failedLeasesCount); 151Interlocked.Increment(ref _successfulLeasesCount); 191Interlocked.Increment(ref _failedLeasesCount); 199Interlocked.Increment(ref _failedLeasesCount); 234Interlocked.Increment(ref _successfulLeasesCount); 247Interlocked.Increment(ref _successfulLeasesCount); 369Interlocked.Increment(ref _successfulLeasesCount);
System.Windows.Forms (1)
System\Windows\Forms\SystemVisualSettingsTracker.cs (1)
51Interlocked.Increment(ref s_transitionVersion);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Animation\HighPrecisionTimer.cs (1)
410long frameIndex = Interlocked.Increment(ref registration.FrameIndex) - 1;