C# Class Caliburn.Micro.PhoneContainer

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

Public Methods

Method 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 method

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

RegisterPhoneServices() public method

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

RegisterWithAppSettings() public method

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

RegisterWithPhoneService() public method

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