public TPayload ReceiveMessage <TPayload>(CancellationToken cancellationToken = default(CancellationToken)) where TPayload : Payload { using (var listener = new NodeListener(this)) { return(listener.ReceivePayload <TPayload>(cancellationToken)); } }
public NodeSet() { _MessageListener = new NodeListener(this); }