Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 protected virtual void Setup(GraphSetup setup)
 {
 }