Exemplo n.º 1
0
        internal static void on_complete(IntPtr gcHandlePtr, int success)
        {
            var self = (CfxSetCookieCallback)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target;

            if (self == null || self.CallbacksDisabled)
            {
                return;
            }
            var e = new CfxSetCookieCallbackOnCompleteEventArgs(success);

            self.m_OnComplete?.Invoke(self, e);
            e.m_isInvalid = true;
        }
Exemplo n.º 2
0
        internal static void on_complete(IntPtr gcHandlePtr, int success)
        {
            var self = (CfxSetCookieCallback)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target;

            if (self == null)
            {
                return;
            }
            var e            = new CfxSetCookieCallbackOnCompleteEventArgs(success);
            var eventHandler = self.m_OnComplete;

            if (eventHandler != null)
            {
                eventHandler(self, e);
            }
            e.m_isInvalid = true;
        }