Beispiel #1
0
 /// <summary>
 /// Places dotnet-monitor into listen mode, allowing dotnet processes to connect
 /// to its diagnostic port listener.
 /// </summary>
 public static DockerRunArgsBuilder MonitorListen(this DockerRunArgsBuilder builder, string endpointName)
 {
     return(builder
            .EnvironmentVariable(EnvVar_DiagnosticPort_ConnectionMode, "Listen")
            .EnvironmentVariable(EnvVar_DiagnosticPort_EndpointName, endpointName));
 }
Beispiel #2
0
 /// <summary>
 /// Suspends a dotnet runtime until it can connect to a diagnostic port listener
 /// at the specified endpoint name.
 /// </summary>
 public static DockerRunArgsBuilder RuntimeSuspend(this DockerRunArgsBuilder builder, string endpointName)
 {
     return(builder.EnvironmentVariable(EnvVar_DiagnosticPorts, $"{endpointName},suspend"));
 }
Beispiel #3
0
 /// <summary>
 /// Disables the metrics endpoint in dotnet-monitor.
 /// </summary>
 public static DockerRunArgsBuilder MonitorDisableMetrics(this DockerRunArgsBuilder builder)
 {
     return(builder.EnvironmentVariable(EnvVar_Metrics_Enabled, "false"));
 }