Пример #1
0
 public SwiftService(IOptions <SwiftServiceOptions> options,
                     ISwiftAuthManager authManager,
                     ISwiftLogger logger) : base(authManager, logger)
 {
     _options = options.Value;
     SetRetryCount(_options.RetryCount);
     SetRetryPerEndpointCount(_options.RetryPerEndpointCount);
 }
Пример #2
0
        public Client(ISwiftAuthManager authManager)
        {
            if (authManager.Authenticate == null)
            {
                authManager.Authenticate = Authenticate;
            }

            _manager = new SwiftRetryManager(authManager);
        }
Пример #3
0
 public SwiftService(IOptions<SwiftServiceOptions> options,
     ISwiftAuthManager authManager,
     ISwiftLogger logger)
     : base(authManager, logger)
 {
     _options = options.Value;
     SetRetryCount(_options.RetryCount);
     SetRetryPerEndpointCount(_options.RetryPerEndpointCount);
 }
Пример #4
0
        public Client(ISwiftAuthManager authManager, TimeSpan?timeout = null) : this(timeout)
        {
            if (authManager.Authenticate == null)
            {
                authManager.Authenticate = Authenticate;
            }

            RetryManager = new SwiftRetryManager(authManager);
        }
Пример #5
0
 public SwiftService(IOptions <SwiftServiceOptions> options,
                     ISwiftAuthManager authManager,
                     IHttpClientFactory httpClientFactory,
                     ISwiftLogger logger) : base(authManager, logger)
 {
     _options = options.Value;
     SetRetryCount(_options.RetryCount);
     SetHttpClient(httpClientFactory, _options.NoHttpDispose);
     SetRetryPerEndpointCount(_options.RetryPerEndpointCount);
 }
Пример #6
0
 public Client(ISwiftAuthManager authManager, ISwiftLogger logger) : this(authManager)
 {
     SetLogger(logger);
 }
Пример #7
0
 public SwiftRetryManager(ISwiftAuthManager authManager)
 {
     AuthManager = authManager;
 }
Пример #8
0
 public Client(ISwiftAuthManager authManager, ISwiftLogger logger, TimeSpan?timeout = null) : this(authManager, timeout)
 {
     SetLogger(logger);
 }