Ejemplo n.º 1
0
 protected ZMQReceivingChannelBase(ChannelManagerBase channelManager, BindingContext bindingContext, Context context, Socket socket, SocketMode socketMode)
     : base(channelManager, bindingContext, socket, socketMode)
 {
     _onReceiveHandler = Receive;
     _onTryReceiveHandler = TryReceive;
     _onWaitForMessageHandler = WaitForMessage;
     _context = context;
 }
Ejemplo n.º 2
0
 protected ZMQReceivingChannelBase(ChannelManagerBase channelManager, BindingContext bindingContext, Context context, Socket socket, SocketMode socketMode)
     : base(channelManager, bindingContext, socket, socketMode)
 {
     _onReceiveHandler        = Receive;
     _onTryReceiveHandler     = TryReceive;
     _onWaitForMessageHandler = WaitForMessage;
     _context = context;
 }
 void SetupDelegates()
 {
     open_handler        = new Action <TimeSpan> (Open);
     close_handler       = new Action <TimeSpan> (Close);
     send_handler        = new AsyncSendHandler(Send);
     receive_handler     = new AsyncReceiveHandler(Receive);
     wait_handler        = new AsyncWaitForMessageHandler(WaitForMessage);
     try_receive_handler = new TryReceiveHandler(TryReceive);
 }