示例#1
0
        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;
        }
示例#2
0
        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())
 {
 }
示例#4
0
 private InternalLogger(LogLevel logLevel, ILoggerSink loggerSink, Func <DateTimeOffset> nowProvider = null)
 {
     LogLevel   = logLevel;
     LoggerSink = loggerSink;
     Now        = nowProvider ?? Defaults.NowFunc();
 }
示例#5
0
 public TokenDetails(string token)
 {
     Token = token;
     Now   = Defaults.NowFunc();
 }
示例#6
0
 public TokenDetails()
 {
     Now = Defaults.NowFunc();
 }