Example #1
0
 public void RaiseFinishEvent(string step, string message)
 {
     FinishHandler?.Invoke(this, new WorkItemEventArgs
     {
         Id           = Id,
         WorkflowId   = WorkflowId,
         Step         = step,
         ErrorMessage = message
     });
 }
Example #2
0
    private IEnumerator ExecuteAsync(FinishHandler OnFinish)
    {
        ExuteStarted?.Invoke();
        yield return(StartCoroutine(OnExecuteAsync()));

        if (Next != null)
        {
            Next.Execute(OnFinish);
        }
        else
        {
            OnFinish?.Invoke();
        }
        ExecuteEnded?.Invoke();
    }
Example #3
0
 private void Finish()
 {
     OnSetScore?.Invoke();
     OnFinish?.Invoke();
 }