18 instantiations of IpcMessage
Microsoft.Diagnostics.NETCore.Client (18)
DiagnosticsClient\DiagnosticsClient.cs (13)
715
return new
IpcMessage
(DiagnosticsServerCommandSet.Profiler, (byte)ProfilerCommandId.AttachProfiler, serializedConfiguration);
720
return new
IpcMessage
(DiagnosticsServerCommandSet.Process, (byte)ProcessCommandId.GetProcessEnvironment);
725
return new
IpcMessage
(DiagnosticsServerCommandSet.Process, (byte)ProcessCommandId.GetProcessInfo);
730
return new
IpcMessage
(DiagnosticsServerCommandSet.Process, (byte)ProcessCommandId.GetProcessInfo2);
735
return new
IpcMessage
(DiagnosticsServerCommandSet.Process, (byte)ProcessCommandId.GetProcessInfo3);
740
return new
IpcMessage
(DiagnosticsServerCommandSet.Process, (byte)ProcessCommandId.ResumeRuntime);
751
return new
IpcMessage
(DiagnosticsServerCommandSet.Process, (byte)ProcessCommandId.SetEnvironmentVariable, serializedConfiguration);
767
return new
IpcMessage
(DiagnosticsServerCommandSet.Profiler, (byte)ProfilerCommandId.StartupProfiler, serializedConfiguration);
786
return new
IpcMessage
(DiagnosticsServerCommandSet.Dump, (byte)DumpCommandId.GenerateCoreDump, payload);
805
return new
IpcMessage
(DiagnosticsServerCommandSet.Dump, (byte)command, payload);
817
return new
IpcMessage
(DiagnosticsServerCommandSet.Process, (byte)ProcessCommandId.ApplyStartupHook, serializedConfiguration);
823
return new
IpcMessage
(DiagnosticsServerCommandSet.Process, (byte)ProcessCommandId.EnablePerfMap, payload);
828
return new
IpcMessage
(DiagnosticsServerCommandSet.Process, (byte)ProcessCommandId.DisablePerfMap);
DiagnosticsClient\EventPipeSession.cs (2)
118
return new
IpcMessage
(DiagnosticsServerCommandSet.EventPipe, (byte)command, payload);
160
stopMessage = new
IpcMessage
(DiagnosticsServerCommandSet.EventPipe, (byte)EventPipeCommandId.StopTracing, payload);
DiagnosticsIpc\IpcMessage.cs (2)
114
IpcMessage message =
new
();
125
IpcMessage message =
new
();
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (1)
1410
IpcMessage message =
new
(DiagnosticsServerCommandSet.Process, (byte)ProcessCommandId.GetProcessInfo);
87 references to IpcMessage
Microsoft.Diagnostics.NETCore.Client (87)
DiagnosticsClient\DiagnosticsClient.cs (54)
171
IpcMessage
request = CreateWriteDumpMessage(DumpCommandId.GenerateCoreDump3, dumpType, dumpPath, flags);
172
IpcMessage
response = IpcClient.SendMessage(_endpoint, request);
211
IpcMessage
request = CreateWriteDumpMessage(DumpCommandId.GenerateCoreDump3, dumpType, dumpPath, flags);
212
IpcMessage
response = await IpcClient.SendMessageAsync(_endpoint, request, token).ConfigureAwait(false);
239
IpcMessage
request = CreateAttachProfilerMessage(attachTimeout, profilerGuid, profilerPath, additionalData);
240
IpcMessage
response = IpcClient.SendMessage(_endpoint, request);
250
IpcMessage
request = CreateAttachProfilerMessage(attachTimeout, profilerGuid, profilerPath, additionalData);
251
IpcMessage
response = await IpcClient.SendMessageAsync(_endpoint, request, token).ConfigureAwait(false);
263
IpcMessage
request = CreateSetStartupProfilerMessage(profilerGuid, profilerPath);
264
IpcMessage
response = IpcClient.SendMessage(_endpoint, request);
270
IpcMessage
request = CreateSetStartupProfilerMessage(profilerGuid, profilerPath);
271
IpcMessage
response = await IpcClient.SendMessageAsync(_endpoint, request, token).ConfigureAwait(false);
280
IpcMessage
request = CreateResumeRuntimeMessage();
281
IpcMessage
response = IpcClient.SendMessage(_endpoint, request);
287
IpcMessage
request = CreateResumeRuntimeMessage();
288
IpcMessage
response = await IpcClient.SendMessageAsync(_endpoint, request, token).ConfigureAwait(false);
299
IpcMessage
request = CreateSetEnvironmentVariableMessage(name, value);
300
IpcMessage
response = IpcClient.SendMessage(_endpoint, request);
306
IpcMessage
request = CreateSetEnvironmentVariableMessage(name, value);
307
IpcMessage
response = await IpcClient.SendMessageAsync(_endpoint, request, token).ConfigureAwait(false);
317
IpcMessage
message = CreateProcessEnvironmentMessage();
327
IpcMessage
message = CreateProcessEnvironmentMessage();
347
IpcMessage
message = CreateApplyStartupHookMessage(startupHookPath);
348
IpcMessage
response = IpcClient.SendMessage(_endpoint, message);
365
IpcMessage
message = CreateApplyStartupHookMessage(startupHookPath);
366
IpcMessage
response = await IpcClient.SendMessageAsync(_endpoint, message, token).ConfigureAwait(false);
376
IpcMessage
request = CreateEnablePerfMapMessage(type);
377
IpcMessage
response = IpcClient.SendMessage(_endpoint, request);
383
IpcMessage
request = CreateEnablePerfMapMessage(type);
384
IpcMessage
response = await IpcClient.SendMessageAsync(_endpoint, request, token).ConfigureAwait(false);
393
IpcMessage
request = CreateDisablePerfMapMessage();
394
IpcMessage
response = IpcClient.SendMessage(_endpoint, request);
400
IpcMessage
request = CreateDisablePerfMapMessage();
401
IpcMessage
response = await IpcClient.SendMessageAsync(_endpoint, request, token).ConfigureAwait(false);
552
IpcMessage
request = CreateProcessInfoMessage();
573
IpcMessage
request = CreateProcessInfoMessage();
580
IpcMessage
request = CreateProcessInfo2Message();
587
IpcMessage
request = CreateProcessInfo2Message();
594
IpcMessage
request = CreateProcessInfo3Message();
601
IpcMessage
request = CreateProcessInfo3Message();
702
private static
IpcMessage
CreateAttachProfilerMessage(TimeSpan attachTimeout, Guid profilerGuid, string profilerPath, byte[] additionalData)
718
private static
IpcMessage
CreateProcessEnvironmentMessage()
723
private static
IpcMessage
CreateProcessInfoMessage()
728
private static
IpcMessage
CreateProcessInfo2Message()
733
private static
IpcMessage
CreateProcessInfo3Message()
738
private static
IpcMessage
CreateResumeRuntimeMessage()
743
private static
IpcMessage
CreateSetEnvironmentVariableMessage(string name, string value)
754
private static
IpcMessage
CreateSetStartupProfilerMessage(Guid profilerGuid, string profilerPath)
770
private static
IpcMessage
CreateWriteDumpMessage(DumpType dumpType, string dumpPath, bool logDumpGeneration)
789
private static
IpcMessage
CreateWriteDumpMessage(DumpCommandId command, DumpType dumpType, string dumpPath, WriteDumpFlags flags)
808
private static
IpcMessage
CreateApplyStartupHookMessage(string startupHookPath)
820
private static
IpcMessage
CreateEnablePerfMapMessage(PerfMapType type)
826
private static
IpcMessage
CreateDisablePerfMapMessage()
858
internal static bool ValidateResponseMessage(
IpcMessage
responseMessage, string operationName, ValidateResponseOptions options = ValidateResponseOptions.None)
DiagnosticsClient\EventPipeSession.cs (8)
44
IpcMessage
requestMessage = CreateStartMessage(config);
51
IpcMessage
requestMessage = CreateStartMessage(config);
61
if (TryCreateStopMessage(out
IpcMessage
requestMessage))
65
IpcMessage
response = IpcClient.SendMessage(_endpoint, requestMessage);
79
if (TryCreateStopMessage(out
IpcMessage
requestMessage))
83
IpcMessage
response = await IpcClient.SendMessageAsync(_endpoint, requestMessage, cancellationToken).ConfigureAwait(false);
95
private static
IpcMessage
CreateStartMessage(EventPipeSessionConfiguration config)
139
private bool TryCreateStopMessage(out
IpcMessage
stopMessage)
DiagnosticsIpc\IpcClient.cs (16)
22
/// <returns>An <see cref="
IpcMessage
"/> that is the response message.</returns>
23
public static
IpcMessage
SendMessage(IpcEndpoint endpoint,
IpcMessage
message)
35
public static IpcResponse SendMessageGetContinuation(IpcEndpoint endpoint,
IpcMessage
message)
44
IpcMessage
response = Read(stream);
60
/// <returns>An <see cref="
IpcMessage
"/> that is the response message.</returns>
61
public static async Task<
IpcMessage
> SendMessageAsync(IpcEndpoint endpoint,
IpcMessage
message, CancellationToken cancellationToken)
74
public static async Task<IpcResponse> SendMessageGetContinuationAsync(IpcEndpoint endpoint,
IpcMessage
message, CancellationToken cancellationToken)
83
IpcMessage
response = await ReadAsync(stream, cancellationToken).ConfigureAwait(false);
93
private static void Write(Stream stream,
IpcMessage
message)
99
private static Task WriteAsync(Stream stream,
IpcMessage
message, CancellationToken cancellationToken)
105
private static
IpcMessage
Read(Stream stream)
107
return
IpcMessage
.Parse(stream);
110
private static Task<
IpcMessage
> ReadAsync(Stream stream, CancellationToken cancellationToken)
112
return
IpcMessage
.ParseAsync(stream, cancellationToken);
DiagnosticsIpc\IpcMessage.cs (4)
112
public static
IpcMessage
Parse(Stream stream)
114
IpcMessage
message = new();
123
public static async Task<
IpcMessage
> ParseAsync(Stream stream, CancellationToken cancellationToken)
125
IpcMessage
message = new();
DiagnosticsIpc\IpcResponse.cs (2)
11
public readonly
IpcMessage
Message;
15
public IpcResponse(
IpcMessage
message, Stream continuation)
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (3)
1410
IpcMessage
message = new(DiagnosticsServerCommandSet.Process, (byte)ProcessCommandId.GetProcessInfo);
1415
IpcMessage
response =
IpcMessage
.Parse(tcpClientStream);