예제 #1
0
        public void Show()
        {
            Start();
            BeginPlay();
            if (BeginEvent != null)
            {
                BeginEvent.Invoke();
            }

            DogCall();
            PersonCall();
            WindCall();
            Funny();
            if (HighEvent != null)
            {
                HighEvent.Invoke();
            }

            EndPlay();
            GetCharge();
            if (EndEvent != null)
            {
                EndEvent.Invoke();
            }
        }
예제 #2
0
        public async Task Handle(BeginEvent notification, CancellationToken cancellationToken)
        {
//            await _mediator.Send(new ShipmentStatusUpdateRequest()
//            {
//                Id = notification.ServiceModel.Id,
//                ServiceModel = new ShipmentStatusUpdateServiceModel()
//                {
//                    StatusDate = DateTime.UtcNow,
//                    StatusCodeId = "P1",
//                }
//            }, cancellationToken);
        }
예제 #3
0
        /// <summary>
        /// 开始整个流程
        /// </summary>
        public void Begin()
        {
            if (!ContentAsset)
            {
                return;
            }

            _currentStep    = 0;
            _currentContent = null;
            _currentTarget  = null;
            _running        = true;
            _executing      = false;

            BeginEvent?.Invoke();

            BeginCurrentStep();
        }
예제 #4
0
        /// <summary>
        /// 开始步骤流程
        /// </summary>
        public void Begin()
        {
            if (!ContentAsset || ContentAsset.Content.Count <= 0 || _stepContents.Count <= 0)
            {
                throw new HTFrameworkException(HTFrameworkModule.StepEditor, "步骤控制者:当前无法开始步骤流程,请重新编译步骤内容 RecompileStepContent!");
            }

            _currentStepIndex = 0;
            _currentContent   = null;
            _currentTarget    = null;
            _currentHelper    = null;
            _running          = true;
            _pause            = false;
            _executing        = false;

            BeginEvent?.Invoke();

            BeginCurrentStep();
        }
예제 #5
0
        /// <summary>
        /// 开始整个流程
        /// </summary>
        public void Begin()
        {
            if (!ContentAsset || ContentAsset.Content.Count <= 0)
            {
                return;
            }

            _currentStep    = 0;
            _currentContent = null;
            _currentTarget  = null;
            _currentHelper  = null;
            _running        = true;
            _pause          = false;
            _executing      = false;

            BeginEvent?.Invoke();

            BeginCurrentStep();
        }
 private void Run() => BeginEvent?.Invoke();