Example #1
0
        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)));
        }
Example #2
0
 public Task WaitForStatusAsync(EdgeDaemonStatus desired, CancellationToken token) => Profiler.Run(
     () => WaitForStatusAsync((ServiceControllerStatus)desired, token),
     "Edge daemon entered the '{Desired}' state",
     desired.ToString().ToLower());