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

            if (ProfilingServices.IsEnabled)
            {
                callData.Start(this._metadata);
            }
        }