Skip to content

Commit 9176f4a

Browse files
committed
[DiagnosticsClient] Keep UserEvents Probe API internal
Support to probe any CommandSet/CommandID support may be added in the future, so to avoid conflicting APIs, keep this internal for now as the query is only relevant to dotnet-trace collect-linux.
1 parent 5e6b162 commit 9176f4a

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/Microsoft.Diagnostics.NETCore.Client/DiagnosticsClient/DiagnosticsClient.cs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -156,29 +156,14 @@ public Task<EventPipeSession> StartEventPipeSessionAsync(EventPipeSessionConfigu
156156
/// <returns>
157157
/// A boolean indicating whether the runtime understands the CollectTracing5 user_events IPC command.
158158
/// </returns>
159-
public bool SupportsEventPipeUserEventsCommand()
159+
internal bool SupportsEventPipeUserEventsCommand()
160160
{
161161
IpcMessage probe = CreateUserEventsCapabilityProbeMessage();
162162
IpcMessage response = IpcClient.SendMessage(_endpoint, probe);
163163

164164
return IsCommandSupportedFromResponse(response);
165165
}
166166

167-
/// <summary>
168-
/// Check whether the target runtime understands the CollectTracing5 user_events IPC command.
169-
/// </summary>
170-
/// <param name="token">The token to monitor for cancellation requests.</param>
171-
/// <returns>
172-
/// A task that completes with a boolean indicating whether the runtime understands the CollectTracing5 user_events IPC command.
173-
/// </returns>
174-
public async Task<bool> SupportsEventPipeUserEventsCommandAsync(CancellationToken token = default)
175-
{
176-
IpcMessage probe = CreateUserEventsCapabilityProbeMessage();
177-
IpcMessage response = await IpcClient.SendMessageAsync(_endpoint, probe, token).ConfigureAwait(false);
178-
179-
return IsCommandSupportedFromResponse(response);
180-
}
181-
182167
/// <summary>
183168
/// Trigger a core dump generation.
184169
/// </summary>

0 commit comments

Comments
 (0)