Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RavenClientEnlistment"/> class.
        /// </summary>
        public RavenClientEnlistment(DocumentStoreBase documentStore, ITransactionalDocumentSession session, Action onTxComplete)
        {
            transaction        = Transaction.Current.TransactionInformation;
            this.documentStore = documentStore;
            this.session       = session;
            this.onTxComplete  = onTxComplete;
            TransactionRecoveryInformationFileName = Guid.NewGuid() + ".recovery-information";

            ctx = documentStore.TransactionRecoveryStorage.Create();
        }
		/// <summary>
		/// Initializes a new instance of the <see cref="RavenClientEnlistment"/> class.
		/// </summary>
		public RavenClientEnlistment(DocumentStoreBase documentStore,ITransactionalDocumentSession session, Action onTxComplete)
		{
			transaction = Transaction.Current.TransactionInformation;
			this.documentStore = documentStore;
			this.session = session;
			this.onTxComplete = onTxComplete;
			TransactionRecoveryInformationFileName = Guid.NewGuid() + ".recovery-information";

			ctx = documentStore.TransactionRecoveryStorage.Create();
		}