public WcfClientServicesFactory(Func <IServiceConsumer <IFileConvertingClientService> > getConvertingService, Func <IServiceConsumer <ISignatureClientService> > getSignatureService, Func <IServiceConsumer <IServerStateClientService> > getServerStateClientService, Func <IServiceConsumer <IHistoryClientService> > getHistoryClientService) { ConvertingClientServiceFactory = new ConvertingClientServiceFactory(getConvertingService, RetryServiceDefault); SignatureClientServiceFactory = new SignatureClientServiceFactory(getSignatureService); ServerStateClientServiceFactory = new ServerStateClientServiceFactory(getServerStateClientService); HistoryClientServiceFactory = new HistoryClientServiceFactory(getHistoryClientService); }
private void Dispose(bool disposing) { if (_disposedValue) { return; } if (disposing) { } ConvertingClientServiceFactory?.Dispose(); SignatureClientServiceFactory?.Dispose(); _disposedValue = true; }