private static SafeWait <object> CreateSafeWait(RetryOptions options)
        {
            var wait = new SafeWait <object>(string.Empty)
            {
                Timeout         = options.Timeout,
                PollingInterval = options.Interval
            };

            foreach (Type exceptionType in options.IgnoredExceptionTypes)
            {
                wait.IgnoreExceptionTypes(exceptionType);
            }

            return(wait);
        }
        private IWait <T> CreateWait(RetryOptions options)
        {
            IWait <T> wait = new SafeWait <T>(Context)
            {
                Timeout         = options.Timeout,
                PollingInterval = options.Interval
            };

            foreach (Type exceptionType in options.IgnoredExceptionTypes)
            {
                wait.IgnoreExceptionTypes(exceptionType);
            }

            return(wait);
        }