protected virtual IReceiveFromEndpoints BuildReceiverEndpoint(IComponentContext c) { return(new MsmqReceiverEndpoint( MsmqConnector.OpenReceive(new MsmqAddress(this.receiverAddress), this.enlist), MsmqConnector.OpenSend(new MsmqAddress(this.poisonAddress), this.enlist), c.Resolve <ISerializeMessages>())); }
protected virtual ISendToEndpoints BuildPoisonEndpoint(IComponentContext c) { // ignore address provided, always send to the configured poison address var address = new MsmqAddress(this.poisonAddress); return(new MsmqSenderEndpoint( addr => MsmqConnector.OpenSend(address, PoisonEndpointEnlist), c.Resolve <ISerializeMessages>())); }
protected virtual ISendToEndpoints BuildSenderEndpoint(IComponentContext c) { return(new MsmqSenderEndpoint( address => MsmqConnector.OpenSend(new MsmqAddress(address.ToString()), this.enlist), c.Resolve <ISerializeMessages>())); }