Пример #1
0
        public void Stack_trace_is_preserved()
        {
            var policy = ActionPolicy
                         .Handle <InvalidOperationException>()
                         .Retry(2);

            StackTest <InvalidOperationException> .Check(policy);
        }
        public void Stack_trace_is_preserved()
        {
            var policy = ActionPolicy
                         .Handle <InvalidOperationException>()
                         .CircuitBreaker(10.Seconds(), 6);

            SystemUtil.SetSleep(s => { });

            StackTest <InvalidOperationException> .Check(policy);
        }