public NClient Build() { // Clone object so builder now operates on new copy. var original = client; client = new NClient(original.ServerKey); client.ConnectTimeout = original.ConnectTimeout; client.Host = original.Host; client.Lang = original.Lang; client.Logger = original.Logger; client.Port = original.Port; client.SSL = original.SSL; client.Timeout = original.Timeout; client.Trace = original.Trace; return(original); }
public NClient Build() { // Clone object so builder now operates on new copy. var original = client; client = new NClient(original.ServerKey, original.TransportType); client.ConnectTimeout = original.ConnectTimeout; client.Host = original.Host; client.Lang = original.Lang; client.Logger = original.Logger; client.Port = original.Port; client.SSL = original.SSL; client.SSLAcceptAllCertificates = original.SSLAcceptAllCertificates; client.SSLValidKeyFingerprints = original.SSLValidKeyFingerprints; client.Timeout = original.Timeout; client.Trace = original.Trace; return(original); }
public Builder(string serverKey) { client = new NClient(serverKey); }
public Builder(string serverKey, TransportType transportType) { client = new NClient(serverKey, transportType); }
public Builder(string serverKey) { client = new NClient(serverKey, TransportType.WebSocket); }
public NManagedClient(NClient client, int initialSize) { _executionQueue = new Queue <Action>(initialSize); _client = client; }
public NManagedClient(NClient client) : this(client, 1024) { }