public Task WaitForStatusAsync(EdgeDaemonStatus desired, CancellationToken token) { var sc = new ServiceController("iotedge"); return(Profiler.Run( $"Waiting for edge daemon to enter the '{desired.ToString().ToLower()}' state", () => this.WaitForStatusAsync(sc, (ServiceControllerStatus)desired, token))); }
public Task WaitForStatusAsync(EdgeDaemonStatus desired, CancellationToken token) => Profiler.Run( () => WaitForStatusAsync((ServiceControllerStatus)desired, token), "Edge daemon entered the '{Desired}' state", desired.ToString().ToLower());