Exemple #1
0
 public Connection(Uri uri, string username, string password, GraphSONReader graphSONReader,
                   GraphSONWriter graphSONWriter, string mimeType)
 {
     _uri               = uri;
     _username          = username;
     _password          = password;
     _graphSONReader    = graphSONReader;
     _graphSONWriter    = graphSONWriter;
     _messageSerializer = new JsonMessageSerializer(mimeType);
 }
Exemple #2
0
 public Connection(Uri uri, string username, string password, GraphSONReader graphSONReader,
                   GraphSONWriter graphSONWriter, string mimeType, Action <ClientWebSocketOptions> webSocketConfiguration)
 {
     _uri                 = uri;
     _username            = username;
     _password            = password;
     _graphSONReader      = graphSONReader;
     _graphSONWriter      = graphSONWriter;
     _messageSerializer   = new JsonMessageSerializer(mimeType);
     _webSocketConnection = new WebSocketConnection(webSocketConfiguration);
 }
Exemple #3
0
 public Connection(Uri uri, string username, string password, GraphSONReader graphSONReader,
                   GraphSONWriter graphSONWriter, string mimeType,
                   Action <ClientWebSocketOptions> webSocketConfiguration, string sessionId)
 {
     _uri       = uri;
     _username  = username;
     _password  = password;
     _sessionId = sessionId;
     if (!string.IsNullOrEmpty(sessionId))
     {
         _sessionEnabled = true;
     }
     _graphSONReader      = graphSONReader;
     _graphSONWriter      = graphSONWriter;
     _messageSerializer   = new JsonMessageSerializer(mimeType);
     _webSocketConnection = new WebSocketConnection(webSocketConfiguration);
 }