Exemplo n.º 1
0
 public ModuleClientProvider(
     ISdkModuleClientProvider sdkModuleClientProvider,
     Option <UpstreamProtocol> upstreamProtocol,
     Option <IWebProxy> proxy,
     string productInfo,
     bool closeOnIdleTimeout,
     TimeSpan idleTimeout)
     : this(Option.None <string>(), sdkModuleClientProvider, upstreamProtocol, proxy, productInfo, closeOnIdleTimeout, idleTimeout)
 {
 }
Exemplo n.º 2
0
 public ModuleClientProvider(
     string connectionString,
     ISdkModuleClientProvider sdkModuleClientProvider,
     Option <UpstreamProtocol> upstreamProtocol,
     Option <IWebProxy> proxy,
     string productInfo,
     bool closeOnIdleTimeout,
     TimeSpan idleTimeout)
     : this(Option.Maybe(connectionString), sdkModuleClientProvider, upstreamProtocol, proxy, productInfo, closeOnIdleTimeout, idleTimeout)
 {
 }
Exemplo n.º 3
0
 public ModuleClientProvider(
     ISdkModuleClientProvider sdkModuleClientProvider,
     Option <Task <IRuntimeInfoProvider> > runtimeInfoProviderTask,
     Option <UpstreamProtocol> upstreamProtocol,
     Option <IWebProxy> proxy,
     string baseProductInfo,
     bool closeOnIdleTimeout,
     TimeSpan idleTimeout,
     bool useServerHeartbeat)
     : this(Option.None <string>(), sdkModuleClientProvider, runtimeInfoProviderTask, upstreamProtocol, proxy, baseProductInfo, closeOnIdleTimeout, idleTimeout, useServerHeartbeat)
 {
 }
Exemplo n.º 4
0
 ModuleClientProvider(
     Option <string> connectionString,
     ISdkModuleClientProvider sdkModuleClientProvider,
     Option <UpstreamProtocol> upstreamProtocol,
     Option <IWebProxy> proxy,
     string productInfo,
     bool closeOnIdleTimeout,
     TimeSpan idleTimeout)
 {
     this.connectionString        = connectionString;
     this.sdkModuleClientProvider = sdkModuleClientProvider;
     this.upstreamProtocol        = upstreamProtocol;
     this.productInfo             = Preconditions.CheckNotNull(productInfo, nameof(productInfo));
     this.proxy = proxy;
     this.closeOnIdleTimeout = closeOnIdleTimeout;
     this.idleTimeout        = idleTimeout;
 }
Exemplo n.º 5
0
 ModuleClientProvider(
     Option <string> connectionString,
     ISdkModuleClientProvider sdkModuleClientProvider,
     Option <UpstreamProtocol> upstreamProtocol,
     Option <IWebProxy> proxy,
     Option <string> productInfo,
     bool closeOnIdleTimeout,
     TimeSpan idleTimeout)
 {
     this.connectionString        = connectionString;
     this.sdkModuleClientProvider = sdkModuleClientProvider;
     this.upstreamProtocol        = upstreamProtocol;
     this.productInfo             = productInfo;
     this.proxy = proxy;
     this.closeOnIdleTimeout = closeOnIdleTimeout;
     this.idleTimeout        = idleTimeout;
 }
Exemplo n.º 6
0
 ModuleClientProvider(
     Option <string> connectionString,
     ISdkModuleClientProvider sdkModuleClientProvider,
     Option <Task <IRuntimeInfoProvider> > runtimeInfoProviderTask,
     Option <UpstreamProtocol> upstreamProtocol,
     Option <IWebProxy> proxy,
     string baseProductInfo,
     bool closeOnIdleTimeout,
     TimeSpan idleTimeout,
     bool useServerHeartbeat)
 {
     this.connectionString        = connectionString;
     this.sdkModuleClientProvider = sdkModuleClientProvider;
     this.runtimeInfoProviderTask = runtimeInfoProviderTask;
     this.upstreamProtocol        = upstreamProtocol;
     this.baseProductInfo         = Preconditions.CheckNotNull(baseProductInfo, nameof(baseProductInfo));
     this.proxy = proxy;
     this.closeOnIdleTimeout = closeOnIdleTimeout;
     this.idleTimeout        = idleTimeout;
     this.useServerHeartbeat = useServerHeartbeat;
 }