public async Task ProcessAsync(ProcessStepViewModel model) { var stepper = await this.Find(model.Id); await this.messageBus.PublishAsync(WorkItemMessage.Create( model.Trigger, stepper.Id, stepper.Type )); }
private void GoTo5(TransitionContext context) { this.AssignToSystem(context); var stepper = context.GetInstance <Stepper>(); _messageBus.PublishAsync(WorkItemMessage.Create( GOTO5_TRIGGER, stepper.Id, stepper.Type )); }