Пример #1
0
            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);
            }
Пример #2
0
            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);
            }
Пример #3
0
 public Builder(string serverKey)
 {
     client = new NClient(serverKey);
 }
Пример #4
0
 public Builder(string serverKey, TransportType transportType)
 {
     client = new NClient(serverKey, transportType);
 }
Пример #5
0
 public Builder(string serverKey)
 {
     client = new NClient(serverKey, TransportType.WebSocket);
 }
Пример #6
0
 public NManagedClient(NClient client, int initialSize)
 {
     _executionQueue = new Queue <Action>(initialSize);
     _client         = client;
 }
Пример #7
0
 public NManagedClient(NClient client) : this(client, 1024)
 {
 }