NetMQ.Core.Ctx.SendCommand C# (CSharp) Method

SendCommand() public method

Send a command to the given destination thread.
public SendCommand ( int threadId, [ command ) : void
threadId int
command [
return void
        public void SendCommand(int threadId, [NotNull] Command command)
        {
            m_slots[threadId].Send(command);
        }

Usage Example

Example #1
0
 /// <summary>
 /// Send the Stop command.
 /// </summary>
 protected void SendStop()
 {
     // 'stop' command goes always from administrative thread to the current object.
     m_ctx.SendCommand(m_threadId, new Command(this, CommandType.Stop));
 }