public static void OnResume([State(StateScope.MethodInvocation)] ref MethodCallData callData) { if (!callData.IsNull) { callData.Resume(); } }
public static void OnYield([State(StateScope.MethodInvocation)] ref MethodCallData callData) { if (!callData.IsNull) { callData.Pause(); } }
public static void OnSuccess([State(StateScope.MethodInvocation)] ref MethodCallData callData) { if (!callData.IsNull) { callData.Stop(); Publish(callData); } }
public static void OnException([State(StateScope.MethodInvocation)] ref MethodCallData callData) { if (!callData.IsNull) { callData.AddException(); callData.Stop(); Publish(callData); } }
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); } }