private void TestInstCallbacks_GeneralOnly_OnGlobalEventHandler(ApiProcessingEventArgs eventArgs) { if (eventArgs.EventType == ApiProcessingEventType.Pre) { Callbacks.Add("OnRequest_InstGl"); } else if (eventArgs.EventType == ApiProcessingEventType.Post) { Callbacks.Add("OnResponse_InstGl"); } }
private void TestCallbackFailuresGlobal_OnGlobalEventHandler(ApiProcessingEventArgs eventArgs) { Callbacks.Add("SuccessCallback_Global"); throw new Exception("Non-PlayFab callback error"); }