C# Class Caliburn.Micro.PhoneContainer

A custom IoC container which integrates with the phone and properly registers all Caliburn.Micro services.
Inheritance: SimpleContainer, IPhoneContainer
Afficher le fichier Open project: bryanhunter/CaliburnMicroTalk Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

PhoneContainer() public méthode

Initializes a new instance of the PhoneContainer class.
public PhoneContainer ( System.Windows.Controls.Frame rootFrame ) : System
rootFrame System.Windows.Controls.Frame The root frame.
Résultat System

RegisterPhoneServices() public méthode

Registers the Caliburn.Micro services with the container.
public RegisterPhoneServices ( bool treatViewAsLoaded = false ) : void
treatViewAsLoaded bool if set to true [treat view as loaded].
Résultat void

RegisterWithAppSettings() public méthode

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.
Résultat void

RegisterWithPhoneService() public méthode

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.
Résultat void