/// <summary> /// Creates an instance of a <see cref="ReceiptBehavior"/> /// for the given destination. /// </summary> /// <param name="destination">The outgoing messages destination</param> /// <param name="messageRouter">The incomming messages router (To listen for Receipt messages).</param> public ReceiptBehavior(string destination, IMessageRouter messageRouter) { _destination = destination; _subscription = messageRouter.GetObservable("RECEIPT").Subscribe(OnReceiptReceived); }