public SwiftService(IOptions <SwiftServiceOptions> options, ISwiftAuthManager authManager, ISwiftLogger logger) : base(authManager, logger) { _options = options.Value; SetRetryCount(_options.RetryCount); SetRetryPerEndpointCount(_options.RetryPerEndpointCount); }
public Client(ISwiftAuthManager authManager) { if (authManager.Authenticate == null) { authManager.Authenticate = Authenticate; } _manager = new SwiftRetryManager(authManager); }
public SwiftService(IOptions<SwiftServiceOptions> options, ISwiftAuthManager authManager, ISwiftLogger logger) : base(authManager, logger) { _options = options.Value; SetRetryCount(_options.RetryCount); SetRetryPerEndpointCount(_options.RetryPerEndpointCount); }
public Client(ISwiftAuthManager authManager, TimeSpan?timeout = null) : this(timeout) { if (authManager.Authenticate == null) { authManager.Authenticate = Authenticate; } RetryManager = new SwiftRetryManager(authManager); }
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); }
public Client(ISwiftAuthManager authManager, ISwiftLogger logger) : this(authManager) { SetLogger(logger); }
public SwiftRetryManager(ISwiftAuthManager authManager) { AuthManager = authManager; }
public Client(ISwiftAuthManager authManager, ISwiftLogger logger, TimeSpan?timeout = null) : this(authManager, timeout) { SetLogger(logger); }