Esempio 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;
        }
Esempio 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;
        }