/// <summary> /// </summary> /// <param name="config">configuration</param> public ArangoContext(IArangoConfiguration config) { Configuration = config ?? throw new ArgumentNullException(nameof(config)); User = new ArangoUserModule(this); Collection = new ArangoCollectionModule(this); View = new ArangoViewModule(this); Database = new ArangoDatabaseModule(this); Graph = new ArangoGraphModule(this); Transaction = new ArangoTransactionModule(this); Document = new ArangoDocumentModule(this); Query = new ArangoQueryModule(this); Index = new ArangoIndexModule(this); Analyzer = new ArangoAnalyzerModule(this); Function = new ArangoFunctionModule(this); Foxx = new ArangoFoxxModule(this); Backup = new ArangoBackupModule(this); Pregel = new ArangoPregelModule(this); }
/// <summary> /// </summary> /// <param name="cs">connection string</param> /// <param name="settings">settings</param> public ArangoContext(string cs, IArangoConfiguration settings = null) { Configuration = settings ?? new ArangoConfiguration(); Configuration.ConnectionString = cs; User = new ArangoUserModule(this); Collection = new ArangoCollectionModule(this); View = new ArangoViewModule(this); Database = new ArangoDatabaseModule(this); Graph = new ArangoGraphModule(this); Transaction = new ArangoTransactionModule(this); Document = new ArangoDocumentModule(this); Query = new ArangoQueryModule(this); Index = new ArangoIndexModule(this); Analyzer = new ArangoAnalyzerModule(this); Function = new ArangoFunctionModule(this); Foxx = new ArangoFoxxModule(this); Backup = new ArangoBackupModule(this); Pregel = new ArangoPregelModule(this); }