Пример #1
0
 public TopazChannel(ICustomizableChannelFactory <TContract> factory, TopazChannelContext context)
     : base(factory, context)
 {
     _policy           = context.Policy;
     _policy.Retrying += (sender, e) =>
     {
         Console.WriteLine("Retry - Count: {0}, Delay: {1}, Exception: {2}", e.CurrentRetryCount, e.Delay, e.LastException.Message);
     };
 }
Пример #2
0
 public CustomizableChannel(ICustomizableChannelFactory <TContract> factory, CustomizableChannelContext context)
     : base(typeof(TContract))
 {
     _factory = factory;
     _context = context;
 }
Пример #3
0
 public RetryCachedChannel(ICustomizableChannelFactory <TContract> factory, RetryCachedChannelContext context)
     : base(factory, context)
 {
     _channel     = null;
     _channelLock = new object();
 }