Exemple #1
0
 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>()));
 }
Exemple #2
0
        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>()));
        }
Exemple #3
0
 protected virtual ISendToEndpoints BuildSenderEndpoint(IComponentContext c)
 {
     return(new MsmqSenderEndpoint(
                address => MsmqConnector.OpenSend(new MsmqAddress(address.ToString()), this.enlist),
                c.Resolve <ISerializeMessages>()));
 }