private static void OnServiceStarted(IService service)
        {
            ServiceStartedHandler handler = ServiceStarted;

            if (handler != null)
            {
                handler(new ServiceStartedArgs(service));
            }
        }
Exemple #2
0
        public Result Start()
        {
            var result = _retryPolicy.Execute(() => _origin.Start());

            if (result.Success)
            {
                ServiceStartedHandler?.Invoke(this, Name);
            }

            return(result);
        }