C# Класс Caliburn.Micro.PhoneContainer

A custom IoC container which integrates with the phone and properly registers all Caliburn.Micro services.
Наследование: SimpleContainer, IPhoneContainer
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
PhoneContainer ( System.Windows.Controls.Frame rootFrame ) : System

Initializes a new instance of the PhoneContainer class.

RegisterPhoneServices ( bool treatViewAsLoaded = false ) : void

Registers the Caliburn.Micro services with the container.

RegisterWithAppSettings ( Type service, string appSettingsKey, Type implementation ) : void

Registers the service as a singleton stored in the app settings.

RegisterWithPhoneService ( Type service, string phoneStateKey, Type implementation ) : void

Registers the service as a singleton stored in the phone state.

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

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

Initializes a new instance of the PhoneContainer class.
public PhoneContainer ( System.Windows.Controls.Frame rootFrame ) : System
rootFrame System.Windows.Controls.Frame The root frame.
Результат System

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

Registers the Caliburn.Micro services with the container.
public RegisterPhoneServices ( bool treatViewAsLoaded = false ) : void
treatViewAsLoaded bool if set to true [treat view as loaded].
Результат void

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

Registers the service as a singleton stored in the app settings.
public RegisterWithAppSettings ( Type service, string appSettingsKey, Type implementation ) : void
service System.Type The service.
appSettingsKey string The app settings key.
implementation System.Type The implementation.
Результат void

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

Registers the service as a singleton stored in the phone state.
public RegisterWithPhoneService ( Type service, string phoneStateKey, Type implementation ) : void
service System.Type The service.
phoneStateKey string The phone state key.
implementation System.Type The implementation.
Результат void