Beispiel #1
0
        public async Task <object> FetchSomethingAsync()
        {
            var policy = CreateRetryPolicy(true);
            var result = await policy.ExecuteAndCaptureAsync(() => _target.FetchSomethingAsync());

            return(result.Result);
        }