public AwsHttpClient(Utils.Executor executor, ISocketFactory socketFactory, string endpoint, int port, bool verifyCertificate, bool secure, ulong minConnections = 1, ulong maxConnections = 6, ulong connectTimeout = 10000, ulong requestTimeout = 10000, bool single_use_sockets = false) { int poll_delay = 3000; this.executor_ = executor; this.socketFactory_ = socketFactory; this.endpoint = endpoint; this.port = port; this.verifyCertificate = verifyCertificate; this.secure = secure; this.minConnections = minConnections; this.maxConnections = maxConnections; this.connectTimeout = connectTimeout; this.requestTimeout = requestTimeout; this.scheduled_callback = executor_.Schedule ( () => { run_tasks(); lock (mutex_) scheduled_callback.reschedule(poll_delay); }, poll_delay ); }
public AwsKinesisClient(Utils.Executor executor, AWSCredentials cred, AWSRegions region, ulong minConnections = 1, ulong maxConnections = 6, ulong connectTimeout = 10000, ulong requestTimeout = 10000, bool single_use_sockets = false) { this.executor_ = executor; this.requestTimeout = requestTimeout; this.cred_ = cred; this.region_ = MapRegion(region); CreateClients((int)maxConnections); }