public Message PrepareResponse(Message response, string sessionId) { if (response == null) { throw new ArgumentNullException("response"); } if (sessionId == null) { throw new ArgumentNullException("sessionId"); } DuplexHeader.AddToMessage(response, this.Address, sessionId); return(response); }
public static PollingDuplexSession GetPollingDuplexSession(this OperationContext context) { return(DuplexHeader.FindHeader(context.IncomingMessageHeaders)); }