示例#1
0
 public ServiceProxyFactoryWithRetries(IChannelProxyGenerator channelProxyGenerator)
 {
     this.channelProxyGenerator = channelProxyGenerator;
 }
 public WcfServiceProxyWithRetries(IChannelProxyGenerator _channelProxyGenerator)
 {
     serviceProxy          = new WcfServiceProxy <TContract>();
     serviceProxy.OnError += (o, exception) => OnError(this, exception);
     Channel = _channelProxyGenerator.CreateCannelWithRetries(serviceProxy);
 }