protected sealed override void OnDispose() { this.ReleaseSubscriptions(); ClientContainersExchangeManager.Unregister(this); try { this.DisposeViewModel(); } finally { // please note - this is too dangerous as this way we can dispose something we don't want to dispose automatically! if (this.isAutoDisposeFields) { this.DisposeDisposableFields(); } } }
protected override void DisposeViewModel() { base.DisposeViewModel(); ClientContainersExchangeManager.Unregister(this); }