Stores data about single endpoint and processes communication between client and server.
示例#1
0
 /// <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);
 }
示例#2
0
 internal ArangoGraph(Connection connection, string name)
 {
     _name = name;
     _graphGraphOps = new GraphGraphOperation(connection, name);
 }
示例#3
0
 internal ACollection(Connection connection)
 {
     _connection = connection;
 }
示例#4
0
 internal AFunction(Connection connection)
 {
     _connection = connection;
 }
示例#5
0
 internal AIndex(Connection connection)
 {
     _connection = connection;
 }
示例#6
0
 /// <summary>
 /// Initializes new database context to perform operations on remote database identified by specified alias.
 /// </summary>
 public ADatabase(string alias)
 {
     _connection = ASettings.GetConnection(alias);
 }
示例#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);
        }
示例#8
0
        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);
        }