public void TryDisposeDisposesIDisposable() { var screen = new Mock <IDisposable>(); ScreenExtensions.TryDispose(screen.Object); screen.Verify(x => x.Dispose()); }
public override void Dispose() { ScreenExtensions.TryDispose(rootViewModel); container?.Dispose(); base.Dispose(); }
public override void Dispose() { ScreenExtensions.TryDispose(this._rootViewModel); if (this.container != null) this.container.Dispose(); base.Dispose(); }
public override void Dispose() { base.Dispose(); ScreenExtensions.TryDispose(_rootViewModel); if (Kernel != null) { Kernel.Dispose(); } }
public override void Dispose() { ScreenExtensions.TryDispose(this._rootViewModel); if (this.kernel != null) { this.kernel.Dispose(); } base.Dispose(); }
public override void Dispose() { base.Dispose(); ScreenExtensions.TryDispose(this._rootViewModel); if (this.serviceProvider != null) { this.serviceProvider.Dispose(); } }
public override void Dispose() { ScreenExtensions.TryDispose(_rootViewModel); if (_container != null) { _container.Dispose(); } base.Dispose(); }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public override void Dispose() { base.Dispose(); ScreenExtensions.TryDispose(_rootViewModel); }
public override void Dispose() { // Probably need to make Stylet to this... ScreenExtensions.TryDispose(this.RootViewModel); base.Dispose(); }
public override void Dispose() { ScreenExtensions.TryDispose(this.RootViewModel); base.Dispose(); }