Пример #1
0
 /// <summary>
 /// Method called when the activity was completed
 /// </summary>
 /// <param name="result">Result of the execution</param>
 public void Completed(ActivityResult result)
 {
     Executing(delegate
     {
         var outputIndex = _indexResolver.Resolve(result.Numeric);
         PlaceToken(Outputs[outputIndex], StoredTokens.First());
     });
 }
Пример #2
0
 /// <inheritdoc />
 public ActivityResult Fail()
 {
     return(Result = CreateFailureResult());
 }
Пример #3
0
 /// <inheritdoc />
 public ActivityResult Complete(long resultNumber)
 {
     return(Result = CreateResult(resultNumber));
 }