コード例 #1
0
ファイル: CfxResourceHandler.cs プロジェクト: xmcy0011/NanUI
 internal override void OnDispose(IntPtr nativePtr)
 {
     if (m_ProcessRequest != null)
     {
         m_ProcessRequest = null;
         CfxApi.cfx_resource_handler_set_managed_callback(NativePtr, 0, IntPtr.Zero);
     }
     if (m_GetResponseHeaders != null)
     {
         m_GetResponseHeaders = null;
         CfxApi.cfx_resource_handler_set_managed_callback(NativePtr, 1, IntPtr.Zero);
     }
     if (m_ReadResponse != null)
     {
         m_ReadResponse = null;
         CfxApi.cfx_resource_handler_set_managed_callback(NativePtr, 2, IntPtr.Zero);
     }
     if (m_CanGetCookie != null)
     {
         m_CanGetCookie = null;
         CfxApi.cfx_resource_handler_set_managed_callback(NativePtr, 3, IntPtr.Zero);
     }
     if (m_CanSetCookie != null)
     {
         m_CanSetCookie = null;
         CfxApi.cfx_resource_handler_set_managed_callback(NativePtr, 4, IntPtr.Zero);
     }
     if (m_Cancel != null)
     {
         m_Cancel = null;
         CfxApi.cfx_resource_handler_set_managed_callback(NativePtr, 5, IntPtr.Zero);
     }
     base.OnDispose(nativePtr);
 }
コード例 #2
0
ファイル: CfxResourceHandler.cs プロジェクト: xmcy0011/NanUI
 internal override void OnDispose(IntPtr nativePtr)
 {
     if(m_ProcessRequest != null) {
         m_ProcessRequest = null;
         CfxApi.cfx_resource_handler_set_managed_callback(NativePtr, 0, IntPtr.Zero);
     }
     if(m_GetResponseHeaders != null) {
         m_GetResponseHeaders = null;
         CfxApi.cfx_resource_handler_set_managed_callback(NativePtr, 1, IntPtr.Zero);
     }
     if(m_ReadResponse != null) {
         m_ReadResponse = null;
         CfxApi.cfx_resource_handler_set_managed_callback(NativePtr, 2, IntPtr.Zero);
     }
     if(m_CanGetCookie != null) {
         m_CanGetCookie = null;
         CfxApi.cfx_resource_handler_set_managed_callback(NativePtr, 3, IntPtr.Zero);
     }
     if(m_CanSetCookie != null) {
         m_CanSetCookie = null;
         CfxApi.cfx_resource_handler_set_managed_callback(NativePtr, 4, IntPtr.Zero);
     }
     if(m_Cancel != null) {
         m_Cancel = null;
         CfxApi.cfx_resource_handler_set_managed_callback(NativePtr, 5, IntPtr.Zero);
     }
     base.OnDispose(nativePtr);
 }