private static void OnServiceStarted(IService service) { ServiceStartedHandler handler = ServiceStarted; if (handler != null) { handler(new ServiceStartedArgs(service)); } }
public Result Start() { var result = _retryPolicy.Execute(() => _origin.Start()); if (result.Success) { ServiceStartedHandler?.Invoke(this, Name); } return(result); }