C# Класс Unite.UI.ViewModels.MainView

Наследование: IInitializeView, INotifyPropertyChanged
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Interactions IInteractionContext

Защищенные свойства (Protected)

Свойство Тип Описание
_ContactRepo IContactProvider

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

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

This must be called when the application first starts so that the model can go through the appropriate workflow to set up the UI for the user.

MainView ( IInteractionContext interactionContext, IMessagingServiceManager messagingService, IContactProvider contactRepo ) : System
MainView_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
_MessagingService_AuthorizationFailed ( object sender, CredentialEventArgs e ) : void
_MessagingService_MessagesReceived ( object sender, MessagesReceivedEventArgs e ) : void
messagingService_CredentialsRequested ( object sender, CredentialEventArgs e ) : void

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

Метод Описание
_GetMessagesFromEvent ( MessagesReceivedEventArgs e ) : void
_UpdateUIWithMessages ( IEnumerable result ) : void

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

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

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

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

This must be called when the application first starts so that the model can go through the appropriate workflow to set up the UI for the user.
public Init ( ) : void
Результат void

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

public MainView ( IInteractionContext interactionContext, IMessagingServiceManager messagingService, IContactProvider contactRepo ) : System
interactionContext IInteractionContext
messagingService IMessagingServiceManager
contactRepo IContactProvider
Результат System

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

public MainView_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
sender object
e System.ComponentModel.PropertyChangedEventArgs
Результат void

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

public _MessagingService_AuthorizationFailed ( object sender, CredentialEventArgs e ) : void
sender object
e CredentialEventArgs
Результат void

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

public _MessagingService_MessagesReceived ( object sender, MessagesReceivedEventArgs e ) : void
sender object
e Unite.Messaging.Services.MessagesReceivedEventArgs
Результат void

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

public messagingService_CredentialsRequested ( object sender, CredentialEventArgs e ) : void
sender object
e CredentialEventArgs
Результат void

Описание свойств

Interactions публичное свойство

Any user input the view model needs can be requested through this object. Instantiation is handled in IoC container.
public IInteractionContext Interactions
Результат IInteractionContext

_ContactRepo защищенное свойство

protected IContactProvider _ContactRepo
Результат IContactProvider