Rhino.Queues.Internal.TransactionEnlistment.Prepare C# (CSharp) Method

Prepare() public method

public Prepare ( PreparingEnlistment preparingEnlistment ) : void
preparingEnlistment PreparingEnlistment
return void
        public void Prepare(PreparingEnlistment preparingEnlistment)
        {
            assertNotDisposed();
            logger.DebugFormat("Preparing enlistment with id: {0}", Id);
            var information = preparingEnlistment.RecoveryInformation();
            queueStorage.Global(actions =>
            {
                actions.RegisterRecoveryInformation(Id, information);
                actions.Commit();
            });
            preparingEnlistment.Prepared();
            logger.DebugFormat("Prepared enlistment with id: {0}", Id);
        }