Пример #1
0
        public void Init(ArangoClientSettings settings)
        {
            if (_initialized)
            {
                throw new InvalidOperationException("ArangoClient already initialized");
            }

            _settings = settings;

            _dispatcher.Init(settings);

            _database.Init(_dispatcher);
            _document.Init(_dispatcher);
            _edge.Init(_dispatcher);
            _collection.Init(_dispatcher);
            _importer.Init(_dispatcher);

            _initialized = true;
        }
Пример #2
0
		public void Init(ArangoClientSettings settings)
		{
			if (_initialized)
			{
				throw new InvalidOperationException("ArangoClient already initialized");
			}

			_settings = settings;

			_dispatcher.Init(settings);

			_database.Init(_dispatcher);
			_document.Init(_dispatcher);
			_edge.Init(_dispatcher);
			_collection.Init(_dispatcher);
			_importer.Init(_dispatcher);

			_initialized = true;
		}