Пример #1
0
 public IOfferWindowsServiceOptions OnServiceFailure(int serviceFailureResetInterval, Action<IOfferWindowsServiceFailureOptions> options)
 {
     _values.ServiceFailureResetInterval = serviceFailureResetInterval;
     var failureOptions = new WindowsServiceFailureOptions();
     options(failureOptions);
     _values.FailureOptions = failureOptions.Values;
     return this;
 }
        public IOfferWindowsServiceOptions OnServiceFailure(int serviceFailureResetInterval, Action <IOfferWindowsServiceFailureOptions> options)
        {
            _values.ServiceFailureResetInterval = serviceFailureResetInterval;
            var failureOptions = new WindowsServiceFailureOptions();

            options(failureOptions);
            _values.FailureOptions = failureOptions.Values;
            return(this);
        }