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