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
显示文件 Open project: github/VisualStudio

Public Methods

Method 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

Method Description
Dispose ( bool disposing ) : void

Method Details

AddHandler() public method

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
return void

ClearHandlers() public method

public ClearHandlers ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

UIPair() public method

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
return GitHub.Exports