4 instantiations of DebuggingSessionId
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
136var debuggingSession = mockEncService.StartDebuggingSessionImpl = (_, _, _, _, _, _) => new DebuggingSessionId(1);
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\EditAndContinueService.cs (1)
165var sessionId = new DebuggingSessionId(Interlocked.Increment(ref s_debuggingSessionId));
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\EditSessionActiveStatementsTests.cs (1)
49new DebuggingSessionId(1),
EditAndContinue\RemoteEditAndContinueServiceTests.cs (1)
140return new DebuggingSessionId(1);
76 references to DebuggingSessionId
Microsoft.CodeAnalysis.ExternalAccess.Debugger (4)
GlassTestsHotReloadService.cs (4)
23private DebuggingSessionId _sessionId; 33var newSessionId = await _encService.StartDebuggingSessionAsync( 46private DebuggingSessionId GetSessionId() 48var sessionId = _sessionId;
Microsoft.CodeAnalysis.Features (48)
EditAndContinue\DebuggingSession.cs (2)
94internal readonly DebuggingSessionId Id; 130DebuggingSessionId id,
EditAndContinue\DebuggingSessionId.cs (1)
16internal readonly record struct UpdateId(DebuggingSessionId SessionId, int Ordinal)
EditAndContinue\EditAndContinueService.cs (11)
110private DebuggingSession? TryGetDebuggingSession(DebuggingSessionId sessionId) 134public async ValueTask<DebuggingSessionId> StartDebuggingSessionAsync( 165var sessionId = new DebuggingSessionId(Interlocked.Increment(ref s_debuggingSessionId)); 190public void EndDebuggingSession(DebuggingSessionId sessionId) 205public void BreakStateOrCapabilitiesChanged(DebuggingSessionId sessionId, bool? inBreakState) 221DebuggingSessionId sessionId, 236public void CommitSolutionUpdate(DebuggingSessionId sessionId) 244public void DiscardSolutionUpdate(DebuggingSessionId sessionId) 252public ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(DebuggingSessionId sessionId, Solution solution, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken) 263public ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(DebuggingSessionId sessionId, TextDocument mappedDocument, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 284public DebuggingSession GetDebuggingSession(DebuggingSessionId id)
EditAndContinue\EditSession.cs (1)
1446var sessionId = DebuggingSession.Id;
EditAndContinue\IEditAndContinueService.cs (8)
22ValueTask<EmitSolutionUpdateResults> EmitSolutionUpdateAsync(DebuggingSessionId sessionId, Solution solution, ImmutableDictionary<ProjectId, RunningProjectOptions> runningProjects, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken); 24void CommitSolutionUpdate(DebuggingSessionId sessionId); 25void DiscardSolutionUpdate(DebuggingSessionId sessionId); 27ValueTask<DebuggingSessionId> StartDebuggingSessionAsync(Solution solution, IManagedHotReloadService debuggerService, IPdbMatchingSourceTextProvider sourceTextProvider, ImmutableArray<DocumentId> captureMatchingDocuments, bool captureAllMatchingDocuments, bool reportDiagnostics, CancellationToken cancellationToken); 28void BreakStateOrCapabilitiesChanged(DebuggingSessionId sessionId, bool? inBreakState); 29void EndDebuggingSession(DebuggingSessionId sessionId); 31ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(DebuggingSessionId sessionId, Solution solution, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken); 32ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(DebuggingSessionId sessionId, TextDocument document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken);
EditAndContinue\Remote\IRemoteEditAndContinueService.cs (8)
30ValueTask<EmitSolutionUpdateResults.Data> EmitSolutionUpdateAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId, DebuggingSessionId sessionId, ImmutableDictionary<ProjectId, RunningProjectOptions> runningProjects, CancellationToken cancellationToken); 35ValueTask CommitSolutionUpdateAsync(DebuggingSessionId sessionId, CancellationToken cancellationToken); 36ValueTask DiscardSolutionUpdateAsync(DebuggingSessionId sessionId, CancellationToken cancellationToken); 38ValueTask<DebuggingSessionId> StartDebuggingSessionAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId, ImmutableArray<DocumentId> captureMatchingDocuments, bool captureAllMatchingDocuments, bool reportDiagnostics, CancellationToken cancellationToken); 43ValueTask BreakStateOrCapabilitiesChangedAsync(DebuggingSessionId sessionId, bool? isBreakState, CancellationToken cancellationToken); 48ValueTask EndDebuggingSessionAsync(DebuggingSessionId sessionId, CancellationToken cancellationToken); 49ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(Checksum solutionChecksum, DebuggingSessionId sessionId, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken); 50ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId, DebuggingSessionId sessionId, DocumentId documentId, CancellationToken cancellationToken);
EditAndContinue\Remote\RemoteDebuggingSessionProxy.cs (1)
15internal sealed class RemoteDebuggingSessionProxy(SolutionServices services, IDisposable? connection, DebuggingSessionId sessionId) : IActiveStatementSpanFactory, IDisposable
EditAndContinue\Remote\RemoteEditAndContinueServiceProxy.cs (1)
132var sessionId = await GetLocalService().StartDebuggingSessionAsync(solution, debuggerService, sourceTextProvider, captureMatchingDocuments, captureAllMatchingDocuments, reportDiagnostics, cancellationToken).ConfigureAwait(false);
EditAndContinue\TraceLog.cs (3)
53private string CreateSessionDirectory(DebuggingSessionId sessionId, string relativePath) 78public void Write(DebuggingSessionId sessionId, ImmutableArray<byte> bytes, string directory, string fileName) 92public async ValueTask WriteAsync(Func<Stream, CancellationToken, ValueTask> writer, DebuggingSessionId sessionId, string directory, string fileName, CancellationToken cancellationToken)
ExternalAccess\UnitTesting\API\UnitTestingHotReloadService.cs (4)
55private DebuggingSessionId _sessionId; 65var newSessionId = await _encService.StartDebuggingSessionAsync( 91var sessionId = _sessionId; 144public DebuggingSessionId SessionId
ExternalAccess\Watch\Api\WatchHotReloadService.cs (8)
140private DebuggingSessionId _sessionId; 147private DebuggingSessionId GetDebuggingSession() 149var sessionId = _sessionId; 168var newSessionId = await _encService.StartDebuggingSessionAsync( 207var sessionId = GetDebuggingSession(); 245var sessionId = GetDebuggingSession(); 251var sessionId = GetDebuggingSession(); 270public DebuggingSessionId SessionId
Microsoft.CodeAnalysis.Features.Test.Utilities (10)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
174var sessionId = await service.StartDebuggingSessionAsync(
EditAndContinue\MockEditAndContinueService.cs (9)
23public Func<Solution, IManagedHotReloadService, IPdbMatchingSourceTextProvider, ImmutableArray<DocumentId>, bool, bool, DebuggingSessionId>? StartDebuggingSessionImpl; 33public void BreakStateOrCapabilitiesChanged(DebuggingSessionId sessionId, bool? inBreakState) 36public void CommitSolutionUpdate(DebuggingSessionId sessionId) 39public void DiscardSolutionUpdate(DebuggingSessionId sessionId) 42public ValueTask<EmitSolutionUpdateResults> EmitSolutionUpdateAsync(DebuggingSessionId sessionId, Solution solution, ImmutableDictionary<ProjectId, RunningProjectOptions> runningProjects, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 45public void EndDebuggingSession(DebuggingSessionId sessionId) 48public ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(DebuggingSessionId sessionId, Solution solution, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken) 51public ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(DebuggingSessionId sessionId, TextDocument document, ActiveStatementSpanProvider activeStatementSpanProvider, CancellationToken cancellationToken) 60public ValueTask<DebuggingSessionId> StartDebuggingSessionAsync(Solution solution, IManagedHotReloadService debuggerService, IPdbMatchingSourceTextProvider sourceTextProvider, ImmutableArray<DocumentId> captureMatchingDocuments, bool captureAllMatchingDocuments, bool reportDiagnostics, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Features.UnitTests (4)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (3)
139var sessionId = await service.StartDebuggingSessionAsync(solution, _debuggerService, NullPdbMatchingSourceTextProvider.Instance, captureMatchingDocuments, captureAllDocuments, reportDiagnostics: true, CancellationToken.None); 944var sessionId = await service.StartDebuggingSessionAsync(solution, _debuggerService, NullPdbMatchingSourceTextProvider.Instance, captureMatchingDocuments: openDocumentIds, captureAllMatchingDocuments: false, reportDiagnostics: true, CancellationToken.None); 5499var sessionId = await encService.StartDebuggingSessionAsync(
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
50var sessionId = hotReload.GetTestAccessor().SessionId;
Microsoft.CodeAnalysis.Remote.ServiceHub (9)
Services\EditAndContinue\RemoteEditAndContinueService.cs (9)
83public ValueTask<DebuggingSessionId> StartDebuggingSessionAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId, ImmutableArray<DocumentId> captureMatchingDocuments, bool captureAllMatchingDocuments, bool reportDiagnostics, CancellationToken cancellationToken) 90var sessionId = await GetService().StartDebuggingSessionAsync(solution, debuggerService, sourceTextProvider, captureMatchingDocuments, captureAllMatchingDocuments, reportDiagnostics, cancellationToken).ConfigureAwait(false); 98public ValueTask BreakStateOrCapabilitiesChangedAsync(DebuggingSessionId sessionId, bool? inBreakState, CancellationToken cancellationToken) 110public ValueTask EndDebuggingSessionAsync(DebuggingSessionId sessionId, CancellationToken cancellationToken) 144Checksum solutionChecksum, RemoteServiceCallbackId callbackId, DebuggingSessionId sessionId, ImmutableDictionary<ProjectId, RunningProjectOptions> runningProjects, CancellationToken cancellationToken) 164public ValueTask CommitSolutionUpdateAsync(DebuggingSessionId sessionId, CancellationToken cancellationToken) 176public ValueTask DiscardSolutionUpdateAsync(DebuggingSessionId sessionId, CancellationToken cancellationToken) 188public ValueTask<ImmutableArray<ImmutableArray<ActiveStatementSpan>>> GetBaseActiveStatementSpansAsync(Checksum solutionChecksum, DebuggingSessionId sessionId, ImmutableArray<DocumentId> documentIds, CancellationToken cancellationToken) 199public ValueTask<ImmutableArray<ActiveStatementSpan>> GetAdjustedActiveStatementSpansAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId, DebuggingSessionId sessionId, DocumentId documentId, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
EditAndContinue\ManagedHotReloadLanguageService.cs (1)
49private DebuggingSessionId? _debuggingSession;