C# Class GitHub.App.Factories.UIPair

This class holds ExportLifetimeContexts (i.e., Lazy Disposable containers) for IView and IViewModel objects A view type (login, clone, etc) is composed of a pair of view and viewmodel, which this class represents.
Inheritance: IUIPair
Afficher le fichier Open project: github/VisualStudio

Méthodes publiques

Méthode Description
AddHandler ( IDisposable disposable ) : void

Register disposable event handlers or observable subscriptions so they get cleared when the View/Viewmodel get disposed/destroyed

ClearHandlers ( ) : void
Dispose ( ) : void
UIPair ( UIViewType type, ExportLifetimeContext v, [ vm ) : GitHub.Exports

Private Methods

Méthode Description
Dispose ( bool disposing ) : void

Method Details

AddHandler() public méthode

Register disposable event handlers or observable subscriptions so they get cleared when the View/Viewmodel get disposed/destroyed
public AddHandler ( IDisposable disposable ) : void
disposable IDisposable
Résultat void

ClearHandlers() public méthode

public ClearHandlers ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

UIPair() public méthode

public UIPair ( UIViewType type, ExportLifetimeContext v, [ vm ) : GitHub.Exports
type UIViewType The UIViewType
v ExportLifetimeContext The IView
vm [ The IViewModel. Might be null because the 2fa view shares the same viewmodel as the login dialog, so it's /// set manually in the view outside of this
Résultat GitHub.Exports