public AblyHttpOptions() //Used for testing { Host = Defaults.RestHost; //Setting up some defaults DisconnectedRetryTimeout = TimeSpan.FromSeconds(15); SuspendedRetryTimeout = TimeSpan.FromSeconds(30); HttpOpenTimeout = TimeSpan.FromSeconds(4); HttpRequestTimeout = TimeSpan.FromSeconds(15); HttpMaxRetryCount = 3; HttpMaxRetryDuration = TimeSpan.FromSeconds(10); NowFunc = Defaults.NowFunc(); Logger = IO.Ably.DefaultLogger.LoggerInstance; }
public AblyHttpOptions() { // Used for testing Host = Defaults.RestHost; // Setting up some defaults DisconnectedRetryTimeout = Defaults.DisconnectedRetryTimeout; SuspendedRetryTimeout = Defaults.SuspendedRetryTimeout; HttpOpenTimeout = Defaults.MaxHttpOpenTimeout; HttpRequestTimeout = Defaults.MaxHttpRequestTimeout; HttpMaxRetryCount = Defaults.HttpMaxRetryCount; HttpMaxRetryDuration = Defaults.HttpMaxRetryDuration; FallbackRetryTimeOut = Defaults.FallbackRetryTimeout; FallbackHosts = Defaults.FallbackHosts; FallbackHostsUseDefault = false; NowFunc = Defaults.NowFunc(); Logger = DefaultLogger.LoggerInstance; }
public TokenRequest() : this(Defaults.NowFunc()) { }
private InternalLogger(LogLevel logLevel, ILoggerSink loggerSink, Func <DateTimeOffset> nowProvider = null) { LogLevel = logLevel; LoggerSink = loggerSink; Now = nowProvider ?? Defaults.NowFunc(); }
public TokenDetails(string token) { Token = token; Now = Defaults.NowFunc(); }
public TokenDetails() { Now = Defaults.NowFunc(); }