C# Класс 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.
Наследование: IUIPair
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Dispose ( bool disposing ) : void

Описание методов

AddHandler() публичный Метод

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
Результат void

ClearHandlers() публичный Метод

public ClearHandlers ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

UIPair() публичный Метод

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
Результат GitHub.Exports