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); }
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)); }