Ejemplo n.º 1
0
        /// <summary>
        /// Registers transaction manager for particular channel
        /// </summary>
        /// <param name="cf">Channel configuration</param>
        /// <param name="manager">Transaction manager for channel</param>
        public static void WithTransactions(this ChannelBinding cf, ChannelTransactionsManager manager)
        {
            var holder = cf as ChannelConfigurator;

            holder.TransactionManager.RegisterManager(cf.Channel, manager);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Registers transaction manager for particular channel
        /// </summary>
        /// <param name="cf">Channel configuration</param>
        /// <param name="manager">Transaction manager for channel</param>
        public static void WithTransactions(this ChannelBinding cf, ChannelTransactionsManager manager)
        {
            var holder = cf as MultiplexerRegistrationDecorator;

            holder.TransactionManager.RegisterManager(cf.Channel, manager);
        }