public AblyHttpOptions(ClientOptions options) { IsSecure = options.Tls; Port = options.Tls ? options.TlsPort : options.Port; Host = options.FullRestHost(); IsDefaultHost = options.IsDefaultRestHost; DisconnectedRetryTimeout = options.DisconnectedRetryTimeout; SuspendedRetryTimeout = options.SuspendedRetryTimeout; HttpOpenTimeout = options.HttpOpenTimeout; HttpRequestTimeout = options.HttpRequestTimeout; HttpMaxRetryCount = options.IsDefaultRestHost ? options.HttpMaxRetryCount : 1; HttpMaxRetryDuration = options.HttpMaxRetryDuration; }
public AblyHttpOptions(ClientOptions options) { IsSecure = options.Tls; Port = options.Tls ? options.TlsPort : options.Port; Host = options.FullRestHost(); IsDefaultHost = options.IsDefaultRestHost; DisconnectedRetryTimeout = options.DisconnectedRetryTimeout; SuspendedRetryTimeout = options.SuspendedRetryTimeout; HttpOpenTimeout = options.HttpOpenTimeout; HttpRequestTimeout = options.HttpRequestTimeout; HttpMaxRetryCount = options.IsDefaultRestHost ? options.HttpMaxRetryCount : 1; HttpMaxRetryDuration = options.HttpMaxRetryDuration; FallbackHosts = options.FallbackHosts; FallbackHostsUseDefault = options.FallbackHostsUseDefault; NowFunc = options.NowFunc; Logger = options.Logger; }