コード例 #1
0
        public async Task ResetTreeAsync()
        {
            var state = treeStateFactory.CreateTree();
            await treeStateStore.Set(state);

            TreeBehaviour = new TreeBehaviourEngine(config, state);
        }
コード例 #2
0
        public async Task InitializeAsync()
        {
            var state = await treeStateStore.Get();

            if (state is null)
            {
                state = treeStateFactory.CreateTree();
                await treeStateStore.Set(state);
            }

            TreeBehaviour = new TreeBehaviourEngine(config, state);
        }