Beispiel #1
0
 public static void OnResume([State(StateScope.MethodInvocation)] ref MethodCallData callData)
 {
     if (!callData.IsNull)
     {
         callData.Resume();
     }
 }
Beispiel #2
0
 public static void OnYield([State(StateScope.MethodInvocation)] ref MethodCallData callData)
 {
     if (!callData.IsNull)
     {
         callData.Pause();
     }
 }
Beispiel #3
0
 public static void OnSuccess([State(StateScope.MethodInvocation)] ref MethodCallData callData)
 {
     if (!callData.IsNull)
     {
         callData.Stop();
         Publish(callData);
     }
 }
Beispiel #4
0
 public static void OnException([State(StateScope.MethodInvocation)] ref MethodCallData callData)
 {
     if (!callData.IsNull)
     {
         callData.AddException();
         callData.Stop();
         Publish(callData);
     }
 }
Beispiel #5
0
        public void OnEntry([State(StateScope.MethodInvocation)] out MethodCallData callData)
        {
            callData = default;

            if (ReferenceFrame.CheckEnabled?.Invoke() ?? false) // Look into proper C# 8 nullability constraints. -a
            {
                callData.Start(this._metadata);
            }
        }