Ejemplo n.º 1
0
		protected virtual IDeliveryHandler BuildDeliveryChain(IRoutingTable table)
		{
			IDeliveryHandler handler = new DefaultDeliveryHandler(table);

			if (this.handlerCallback != null)
				handler = this.handlerCallback(handler) ?? handler;

			if (this.transactionScope)
				handler = new TransactionScopeDeliveryHandler(handler);

			return new TransactionalDeliveryHandler(handler);
		}
Ejemplo n.º 2
0
        protected virtual IDeliveryHandler BuildDeliveryChain(IRoutingTable table)
        {
            IDeliveryHandler handler = new DefaultDeliveryHandler(table);

            if (this.handlerCallback != null)
            {
                handler = this.handlerCallback(handler) ?? handler;
            }

            if (this.transactionScope)
            {
                handler = new TransactionScopeDeliveryHandler(handler);
            }

            return(new TransactionalDeliveryHandler(handler));
        }