C# 클래스 Caliburn.Micro.PhoneContainer

A custom IoC container which integrates with the phone and properly registers all Caliburn.Micro services.
상속: SimpleContainer, IPhoneContainer
파일 보기 프로젝트 열기: bryanhunter/CaliburnMicroTalk 1 사용 예제들

공개 메소드들

메소드 설명
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