public void Unregister(RegistrationContext context)
 {
     if (this.refCount > 0)
     {
         for (int i = 0; i < this.refCount; i++)
         {
             this.executor.ExitNoPersist();
         }
         this.refCount = 0;
     }
 }
Ejemplo n.º 2
0
		void IPropertyRegistrationCallback.Unregister (RegistrationContext context)
		{
			throw new NotImplementedException ();
		}
 public void Register(RegistrationContext context)
 {
 }
Ejemplo n.º 4
0
 void IPropertyRegistrationCallback.Unregister(RegistrationContext context)
 {
     this.isPropertyRegistered = false;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 6
0
 void IPropertyRegistrationCallback.Unregister(RegistrationContext context)
 {
     this.isPropertyRegistered = false;
 }
Ejemplo n.º 7
0
 public void Register(RegistrationContext context)
 {
 }