private void CreateStateMachine(object globalSyncContext) { try { StateMachine = StateMachineFactory.CreateTriggerAsync <ChildState>($"Child{_name} StateMachine", _logger, globalSyncContext); using (var builder = ChildMachineBuilder.BuildStateMachine(this, StateMachine)) { //TODO: add EFFECT actions } } catch (Exception ex) { _logger.Error($"{ex.GetType().Name} while creating child StateMachine.", ex); throw; } }