/// <summary> /// Log authentication errors, reauthorization events and request errors /// </summary> /// <param name="logger"></param> /// <returns></returns> public Client SetLogger(ISwiftLogger logger) { _logger = logger; RetryManager.SetLogger(logger); return this; }
/// <summary> /// Log authentication errors, reauthorization events and request errors /// </summary> /// <param name="logger"></param> /// <returns></returns> public Client SetLogger(ISwiftLogger logger) { _logger = logger; RetryManager.SetLogger(logger); return(this); }
public SwiftService(IOptions <SwiftServiceOptions> options, ISwiftAuthManager authManager, ISwiftLogger logger) : base(authManager, logger) { _options = options.Value; SetRetryCount(_options.RetryCount); SetRetryPerEndpointCount(_options.RetryPerEndpointCount); }
public SwiftService(IOptions<SwiftServiceOptions> options, ISwiftAuthManager authManager, ISwiftLogger logger) : base(authManager, logger) { _options = options.Value; SetRetryCount(_options.RetryCount); SetRetryPerEndpointCount(_options.RetryPerEndpointCount); }
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 Client(SwiftCredentials credentials, ISwiftLogger logger) : this(credentials) { SetLogger(logger); }
public void SetLogger(ISwiftLogger logger) { _logger = logger; }
public Client(ISwiftAuthManager authManager, ISwiftLogger logger, TimeSpan?timeout = null) : this(authManager, timeout) { SetLogger(logger); }
public Client(SwiftCredentials credentials, ISwiftLogger logger, TimeSpan?timeout = null) : this(credentials, timeout) { SetLogger(logger); }