Пример #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);
		}
Пример #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));
        }