public static EventConfigured ExecuteActionOnEvent( this StateConfigured stateConfigured, string eventName) { stateConfigured .StateConfiguration .CurrentState .RegisteredEvent = eventName; var workflowService = stateConfigured.StateConfiguration.WorkflowService; var currentState = stateConfigured.StateConfiguration.CurrentState; StateflowDbContext .Commands .CreateWorkflowState(workflowService, currentState); return(new EventConfigured(stateConfigured.StateConfiguration)); }
public static EventConfigured ExecuteActionOnEvent( this StateConfigured stateConfigured, Enum eventName) { return(ExecuteActionOnEvent(stateConfigured, eventName.ToString())); }