Stores data about single endpoint and processes communication between client and server.
 /// <summary>
 /// Creates Arango database object with specified alias connection.
 /// </summary>
 /// <param name="alias">Connection alias which was previously created through ArangoClient.AddConnection method.</param>
 public ArangoDatabase(string alias)
 {
     _connection = ArangoClient.GetConnection(alias);
 }
Exemple #2
0
 internal ArangoGraph(Connection connection, string name)
 {
     _name = name;
     _graphGraphOps = new GraphGraphOperation(connection, name);
 }
 internal ACollection(Connection connection)
 {
     _connection = connection;
 }
Exemple #4
0
 internal AFunction(Connection connection)
 {
     _connection = connection;
 }
Exemple #5
0
 internal AIndex(Connection connection)
 {
     _connection = connection;
 }
 /// <summary>
 /// Initializes new database context to perform operations on remote database identified by specified alias.
 /// </summary>
 public ADatabase(string alias)
 {
     _connection = ASettings.GetConnection(alias);
 }
Exemple #7
0
        public static void AddConnection(string alias, string hostname, int port, bool isSecured, string databaseName, string username, string password, bool useWebProxy = false)
        {
            var connection = new Connection(alias, hostname, port, isSecured, databaseName, username, password, useWebProxy);

            _connections.Add(alias, connection);
        }
        public static void AddConnection(string alias, string hostname, int port, bool isSecured, string username, string password)
        {
            var connection = new Connection(alias, hostname, port, isSecured, username, password);

            _connections.Add(alias, connection);
        }