public void Unregister(RegistrationContext context)
 {
     if (this.refCount > 0)
     {
         for (int i = 0; i < this.refCount; i++)
         {
             this.executor.ExitNoPersist();
         }
         this.refCount = 0;
     }
 }
コード例 #2
0
		void IPropertyRegistrationCallback.Unregister (RegistrationContext context)
		{
			throw new NotImplementedException ();
		}
 public void Register(RegistrationContext context)
 {
 }
コード例 #4
0
 void IPropertyRegistrationCallback.Unregister(RegistrationContext context)
 {
     this.isPropertyRegistered = false;
 }
コード例 #5
0
        void IPropertyRegistrationCallback.Register(RegistrationContext context)
        {
            if (!this.isHandleInitialized)
            {
                throw FxTrace.Exception.AsError(new InvalidOperationException(SR.UnInitializedRuntimeTransactionHandle));
            }

            RuntimeTransactionHandle handle = (RuntimeTransactionHandle)context.FindProperty(typeof(RuntimeTransactionHandle).FullName);
            if (handle != null)
            {
                if (handle.SuppressTransaction)
                {
                    this.isSuppressed = true;
                }
            }

            this.isPropertyRegistered = true;
        }
コード例 #6
0
 void IPropertyRegistrationCallback.Unregister(RegistrationContext context)
 {
     this.isPropertyRegistered = false;
 }
コード例 #7
0
 public void Register(RegistrationContext context)
 {
 }