Example #1
0
 private void OnWebRequestAgentFailure(WebRequestAgent sender, string errorMessage)
 {
     if (m_WebRequestFailureEventHandler != null)
     {
         WebRequestFailureEventArgs webRequestFailureEventArgs = WebRequestFailureEventArgs.Create(sender.Task.SerialId, sender.Task.WebRequestUri, errorMessage, sender.Task.UserData);
         m_WebRequestFailureEventHandler(this, webRequestFailureEventArgs);
         ReferencePool.Release(webRequestFailureEventArgs);
     }
 }
 static int Fill(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityGameFramework.Runtime.WebRequestFailureEventArgs obj  = (UnityGameFramework.Runtime.WebRequestFailureEventArgs)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.WebRequestFailureEventArgs));
         GameFramework.WebRequest.WebRequestFailureEventArgs   arg0 = (GameFramework.WebRequest.WebRequestFailureEventArgs)ToLua.CheckObject(L, 2, typeof(GameFramework.WebRequest.WebRequestFailureEventArgs));
         UnityGameFramework.Runtime.WebRequestFailureEventArgs o    = obj.Fill(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #3
0
 private void OnWebRequestFailure(object sender, GameFramework.WebRequest.WebRequestFailureEventArgs e)
 {
     Log.Warning("Web request failure, web request serial id '{0}', web request uri '{1}', error message '{2}'.", e.SerialId.ToString(), e.WebRequestUri, e.ErrorMessage);
     m_EventComponent.Fire(this, ReferencePool.Acquire <WebRequestFailureEventArgs>().Fill(e));
 }
 private void OnWebRequestFailure(object sender, GameFramework.WebRequest.WebRequestFailureEventArgs e)
 {
     Log.Warning("Web request failure, web request serial id '{0}', web request uri '{1}', error message '{2}'.", e.SerialId, e.WebRequestUri, e.ErrorMessage);
     m_EventComponent.Fire(this, WebRequestFailureEventArgs.Create(e));
 }