示例#1
0
        //      private bool _callbacksInstalled = false;

        private void setCallbacks()
        {
            _receiveDelegate = new ReceiverDelegate(receiveOutput);
            _joinDelegate    = new SubscriberDelegate(sessionSubscriber);
            _queryDelegate   = new IncomingQueryDelegate(incomingQuery);
            _xferDelegate    = new IncomingXferDelegate(xferHandler);
            GC.KeepAlive(_queryDelegate);
            GC.KeepAlive(_xferDelegate);
            GC.KeepAlive(_receiveDelegate);
            GC.KeepAlive(_joinDelegate);
        }
示例#2
0
 //      private bool _callbacksInstalled = false;
 private void setCallbacks()
 {
     _receiveDelegate = new ReceiverDelegate(receiveOutput);
     _joinDelegate = new SubscriberDelegate(sessionSubscriber);
     _queryDelegate = new IncomingQueryDelegate(incomingQuery);
     _xferDelegate = new IncomingXferDelegate(xferHandler);
     GC.KeepAlive(_queryDelegate);
     GC.KeepAlive(_xferDelegate);
     GC.KeepAlive(_receiveDelegate);
     GC.KeepAlive(_joinDelegate);
 }
示例#3
0
 private static extern void SetIncomingXferInterface(
     [MarshalAs(UnmanagedType.FunctionPtr)] IncomingQueryDelegate qcb,
     [MarshalAs(UnmanagedType.FunctionPtr)] IncomingXferDelegate xcb);
示例#4
0
 // XferObject
 public void SetLocalIncomingXferInterface(IncomingQueryDelegate qcb, IncomingXferDelegate xcb)
 {
     SetIncomingXferInterface(qcb, xcb);
 }
示例#5
0
 // XferObject
 public void SetLocalIncomingXferInterface(IncomingQueryDelegate qcb, IncomingXferDelegate xcb)
 {
     SetIncomingXferInterface(qcb, xcb);
 }