Exemple #1
0
        public override ValueTask ExecuteAsync(IExecutionContext context, IToken token, ExecutingAction onComplete)
        {
            _onComplete = onComplete;
            _token      = token;
            var eventDef = EventDefinition;

            if (eventDef != null)
            {
                context.AddEvent(eventDef.CreateEvent(Id), this, OnTrigger);
            }
            else
            {
                SetComplete(context);
            }
            return(ValueTask.CompletedTask);
        }