コード例 #1
0
        protected override void ExecuteInTargetProcess(RemoteConnection connection)
        {
            var self = (CfrWriteHandler)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target;

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

            self.m_Write?.Invoke(self, e);
            e.m_isInvalid = true;
            __retval      = (UIntPtr)e.m_returnValue;
        }
コード例 #2
0
        protected override void RemoteProcedure()
        {
            var self = (CfrWriteHandler)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target;

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

            e.connection = CfxRemoteCallContext.CurrentContext.connection;
            self.m_Write?.Invoke(self, e);
            e.connection = null;
            __retval     = (UIntPtr)e.m_returnValue;
        }