public async Task Setup(bool force = false) { var connection = await GetConnection(); if (!_setuped) { var setup = new GraphSetup(connection, _restClient); Setup(setup); _graph = new ReadonlyGraph(setup); } if (!_setuped || force) { if (_settings.Mode == Mode.WriteThrough) { await _graph.Prepare(); } } _setuped = true; }
protected virtual void Setup(GraphSetup setup) { }