Exemple #1
0
 private void OnWebRequestAgentSuccess(WebRequestAgent sender, byte[] webResponseBytes)
 {
     if (m_WebRequestSuccessEventHandler != null)
     {
         WebRequestSuccessEventArgs webRequestSuccessEventArgs = WebRequestSuccessEventArgs.Create(sender.Task.SerialId, sender.Task.WebRequestUri, webResponseBytes, sender.Task.UserData);
         m_WebRequestSuccessEventHandler(this, webRequestSuccessEventArgs);
         ReferencePool.Release(webRequestSuccessEventArgs);
     }
 }
Exemple #2
0
 static int Fill(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityGameFramework.Runtime.WebRequestSuccessEventArgs obj  = (UnityGameFramework.Runtime.WebRequestSuccessEventArgs)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.WebRequestSuccessEventArgs));
         GameFramework.WebRequest.WebRequestSuccessEventArgs   arg0 = (GameFramework.WebRequest.WebRequestSuccessEventArgs)ToLua.CheckObject(L, 2, typeof(GameFramework.WebRequest.WebRequestSuccessEventArgs));
         UnityGameFramework.Runtime.WebRequestSuccessEventArgs o    = obj.Fill(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #3
0
 private void OnWebRequestSuccess(object sender, GameFramework.WebRequest.WebRequestSuccessEventArgs e)
 {
     m_EventComponent.Fire(this, ReferencePool.Acquire <WebRequestSuccessEventArgs>().Fill(e));
 }
Exemple #4
0
 private void OnWebRequestSuccess(object sender, GameFramework.WebRequest.WebRequestSuccessEventArgs e)
 {
     m_EventComponent.Fire(this, WebRequestSuccessEventArgs.Create(e));
 }