예제 #1
0
        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
                                                   ));
        }
예제 #2
0
        private void GoTo5(TransitionContext context)
        {
            this.AssignToSystem(context);

            var stepper = context.GetInstance <Stepper>();

            _messageBus.PublishAsync(WorkItemMessage.Create(
                                         GOTO5_TRIGGER,
                                         stepper.Id,
                                         stepper.Type
                                         ));
        }