protected override void OnUninitialize(HandleInitializationContext context) { FolderWatcherExtension extension = context.GetExtension <FolderWatcherExtension>(); this.ReleaseSubscription(extension); base.OnUninitialize(context); }
protected override void OnUninitialize(HandleInitializationContext context) { SendReceiveExtension sendReceiveExtension = context.GetExtension <SendReceiveExtension>(); if (sendReceiveExtension != null) { if (this.InstanceKey != null) { sendReceiveExtension.OnUninitializeCorrelation(this.InstanceKey); } if (this.TransientInstanceKey != null) { sendReceiveExtension.OnUninitializeCorrelation(this.TransientInstanceKey); } } context.UninitializeHandle(this.noPersistHandle); context.UninitializeHandle(this.bookmarkScopeHandle); }
protected override void OnUninitialize(HandleInitializationContext context) { SendReceiveExtension sendReceiveExtension = context.GetExtension<SendReceiveExtension>(); if (sendReceiveExtension != null) { if (this.InstanceKey != null) { sendReceiveExtension.OnUninitializeCorrelation(this.InstanceKey); } if (this.TransientInstanceKey != null) { sendReceiveExtension.OnUninitializeCorrelation(this.TransientInstanceKey); } } context.UninitializeHandle(this.noPersistHandle); context.UninitializeHandle(this.bookmarkScopeHandle); }
protected override void OnUninitialize(HandleInitializationContext context) { if (this.bookmarkScope != null) { int scopeRefCount = this.bookmarkScope.DecrementHandleReferenceCount(); DisassociateInstanceKeysExtension extension = context.GetExtension<DisassociateInstanceKeysExtension>(); // We only unregister the BookmarkScope if the extension exists and is enabled and if we had the last reference to it. if ((extension != null) && extension.AutomaticDisassociationEnabled && (scopeRefCount == 0)) { context.UnregisterBookmarkScope(this.bookmarkScope); } } base.OnUninitialize(context); }
protected override void OnUninitialize(HandleInitializationContext context) { FolderWatcherExtension extension = context.GetExtension<FolderWatcherExtension>(); this.ReleaseSubscription(extension); base.OnUninitialize(context); }