Exemplo n.º 1
0
        private void Dispose(bool disposing)
        {
            if (_disposedValue)
            {
                return;
            }

            if (disposing)
            {
            }
            ConvertingServerServiceFactory?.Dispose();
            SignatureServerServiceFactory?.Dispose();
            _disposedValue = true;
        }
Exemplo n.º 2
0
        public WcfServerServicesFactory(Func <IServiceConsumer <IFileConvertingServerService> > getConvertingService,
                                        Func <IServiceConsumer <ISignatureServerService> > getSignatureService)
        {
            if (getConvertingService == null)
            {
                throw new ArgumentNullException(nameof(getConvertingService));
            }
            if (getSignatureService == null)
            {
                throw new ArgumentNullException(nameof(getSignatureService));
            }

            ConvertingServerServiceFactory = new ConvertingServerServiceFactory(getConvertingService, RetryServiceDefault);
            SignatureServerServiceFactory  = new SignatureServerServiceFactory(getSignatureService, RetryServiceDefault);
        }