public async Task ResetTreeAsync() { var state = treeStateFactory.CreateTree(); await treeStateStore.Set(state); TreeBehaviour = new TreeBehaviourEngine(config, state); }
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); }