public DefaultLeaveWorkflow(ILeaveWorkflowConfiguration config) { _config = config; //add handlers EventHandlers = new List<WorkflowEventHandler> { new LeaveCreateEventHandler(_config) }; }
public LeaveCreateEventHandler(ILeaveWorkflowConfiguration config) { _config = config; EventType = "Create"; ObjectType = "Leave"; }