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); }