ReactiveUI.ViewModelActivator.Deactivate C# (CSharp) Méthode

Deactivate() public méthode

This method is called by the framework when the corresponding View is deactivated.
public Deactivate ( bool ignoreRefCount = false ) : void
ignoreRefCount bool Force the VM to be deactivated, even /// if more than one person called Activate.
Résultat void
        public void Deactivate(bool ignoreRefCount = false)
        {
            if (Interlocked.Decrement(ref refCount) == 0 || ignoreRefCount) {
                Interlocked.Exchange(ref activationHandle, Disposable.Empty).Dispose();
                deactivated.OnNext(Unit.Default);
            }
        }
    }