Exemple #1
0
 public SendAsyncMethod()
 {
     transientFaultHandler = new TransientFaultHandler(policy)
     {
         InnerHandler = mockHandler
     };
     handler = new HttpMessageHandlerAdapter(transientFaultHandler);
 }
Exemple #2
0
            public SendAsyncMethod()
            {
                var decompressionHandler = new GZipHandler {
                    InnerHandler = mockHandler
                };

                handler = new HttpMessageHandlerAdapter(decompressionHandler);
            }
        public LoggingHandlerTests()
        {
            var loggingHandler = new LoggingHandler(mockLog.Object)
            {
                InnerHandler = mockHandler
            };

            handler = new HttpMessageHandlerAdapter(loggingHandler);
        }