예제 #1
0
 protected internal static void SendEvent(string apiEndpoint, PlayFabRequestCommon request,
                                          PlayFabResultCommon result, ApiProcessingEventType eventType)
 {
     if (ApiProcessingEventHandler == null)
     {
         return;
     }
     try {
         ApiProcessingEventHandler(new ApiProcessingEventArgs {
             ApiEndpoint = apiEndpoint,
             EventType   = eventType,
             Request     = request,
             Result      = result
         });
     }
     catch (Exception e) {
         Debug.LogException(e);
     }
 }
예제 #2
0
 protected internal static void SendEvent(string apiEndpoint, PlayFabRequestCommon request, PlayFabResultCommon result, ApiProcessingEventType eventType)
 {
     if (PlayFabHttp.ApiProcessingEventHandler == null)
     {
         return;
     }
     try
     {
         PlayFabHttp.ApiProcessingEventHandler(new ApiProcessingEventArgs
         {
             ApiEndpoint = apiEndpoint,
             EventType   = eventType,
             Request     = request,
             Result      = result
         });
     }
     catch
     {
     }
 }