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