Пример #1
0
        /// <summary>
        /// <para>The dispose event occurs when the transaction is disposed of through the <languageKeyword>Dispose</languageKeyword> method. </para>
        /// </summary>
        /// <remarks>
        /// <para>To override <see cref="System.Fabric.Transaction.OnDispose" />, be sure to call <languageKeyword>OnDispose</languageKeyword> on the base class.</para>
        /// </remarks>
        protected internal override void OnDispose()
        {
            base.OnDispose();

            if (this.nativeTransaction != null)
            {
                Marshal.FinalReleaseComObject(this.nativeTransaction);
                this.nativeTransaction = null;
            }
        }
Пример #2
0
 internal Transaction(NativeRuntime.IFabricTransaction nativeTransaction)
     : base((NativeRuntime.IFabricTransactionBase)nativeTransaction)
 {
     this.nativeTransaction = nativeTransaction;
 }