Esempio n. 1
0
        /// <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;
        }
Esempio n. 2
0
        /// <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);
        }
Esempio n. 3
0
 public SwiftService(IOptions <SwiftServiceOptions> options,
                     ISwiftAuthManager authManager,
                     ISwiftLogger logger) : base(authManager, logger)
 {
     _options = options.Value;
     SetRetryCount(_options.RetryCount);
     SetRetryPerEndpointCount(_options.RetryPerEndpointCount);
 }
Esempio n. 4
0
 public SwiftService(IOptions<SwiftServiceOptions> options,
     ISwiftAuthManager authManager,
     ISwiftLogger logger)
     : base(authManager, logger)
 {
     _options = options.Value;
     SetRetryCount(_options.RetryCount);
     SetRetryPerEndpointCount(_options.RetryPerEndpointCount);
 }
Esempio n. 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);
 }
Esempio n. 6
0
 public Client(ISwiftAuthManager authManager, ISwiftLogger logger) : this(authManager)
 {
     SetLogger(logger);
 }
Esempio n. 7
0
 public Client(SwiftCredentials credentials, ISwiftLogger logger) : this(credentials)
 {
     SetLogger(logger);
 }
Esempio n. 8
0
 public void SetLogger(ISwiftLogger logger)
 {
     _logger = logger;
 }
Esempio n. 9
0
 public Client(ISwiftAuthManager authManager, ISwiftLogger logger, TimeSpan?timeout = null) : this(authManager, timeout)
 {
     SetLogger(logger);
 }
Esempio n. 10
0
 public Client(SwiftCredentials credentials, ISwiftLogger logger, TimeSpan?timeout = null) : this(credentials, timeout)
 {
     SetLogger(logger);
 }