protected void SendOwn(Own destination, Own obj) { destination.IncSeqnum(); Command cmd = new Command(destination, CommandType.Own, obj); SendCommand(cmd); }
/// <summary> /// Send the Bind command /// </summary> /// <param name="destination"></param> /// <param name="pipe"></param> /// <param name="incSeqnum"></param> protected void SendBind([NotNull] Own destination, [NotNull] Pipe pipe, bool incSeqnum = true) { if (incSeqnum) { destination.IncSeqnum(); } SendCommand(new Command(destination, CommandType.Bind, pipe)); }
/// <summary> /// Send the Plug command, incrementing the destinations sequence-number if incSeqnum is true. /// </summary> /// <param name="destination">the Own to send the command to</param> /// <param name="incSeqnum">a flag that dictates whether to increment the sequence-number on the destination (optional - defaults to false)</param> protected void SendPlug([NotNull] Own destination, bool incSeqnum = true) { if (incSeqnum) { destination.IncSeqnum(); } SendCommand(new Command(destination, CommandType.Plug)); }
protected void SendPlug(Own destination, bool incSeqnum = true) { if (incSeqnum) { destination.IncSeqnum(); } Command cmd = new Command(destination, CommandType.Plug); SendCommand(cmd); }
protected void SendBind(Own destination, Pipe pipe, bool incSeqnum = true) { if (incSeqnum) { destination.IncSeqnum(); } Command cmd = new Command(destination, CommandType.Bind, pipe); SendCommand(cmd); }
protected void SendPlug(Own destination, bool incSeqnum) { if (incSeqnum) destination.IncSeqnum (); Command cmd = new Command(destination, CommandType.Plug); SendCommand (cmd); }
protected void SendOwn(Own destination, Own obj) { destination.IncSeqnum (); Command cmd = new Command(destination, CommandType.Own, obj); SendCommand (cmd); }
protected void SendBind(Own destination, Pipe pipe, bool incSeqnum) { if (incSeqnum) destination.IncSeqnum (); Command cmd = new Command(destination, CommandType.Bind, pipe); SendCommand (cmd); }
/// <summary> /// Send the Own command, and increment the sequence-number of the destination /// </summary> /// <param name="destination">the Own to send the command to</param> /// <param name="obj">the object to Own</param> protected void SendOwn([NotNull] Own destination, [NotNull] Own obj) { destination.IncSeqnum(); SendCommand(new Command(destination, CommandType.Own, obj)); }