C# 클래스 Illusion.Bootstrapper

Instantiate this class in order to configure the framework.
파일 보기 프로젝트 열기: kasicass/kasicass

공개 메소드들

메소드 설명
Bootstrapper ( bool useApplication = true ) : System

Creates an instance of the bootstrapper.

보호된 메소드들

메소드 설명
BuildUp ( object instance ) : void

Override this to provide an IoC specific implementation.

Configure ( ) : void

Override to configure the framework and setup your IoC container.

DisplayRootViewFor ( Application application, Type viewModelType ) : void

Locates the view model, locates the associate view, binds them and shows it as the root view.

DisplayRootViewFor ( Type viewModelType ) : void

Locates the view model, locates the associate view, binds them and shows it as the root view.

GetAllInstances ( Type service ) : IEnumerable

Override this to provide an IoC specific implementation

GetInstance ( Type service, string key ) : object

Override this to provide an IoC specific implementation.

OnExit ( object sender, EventArgs e ) : void

Override this to add custom behavior on exit.

OnStartup ( object sender, System.Windows.StartupEventArgs e ) : void

Override this to add custom behavior to execute after the application starts.

OnUnhandledException ( object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e ) : void

Override this to add custom behavior for unhandled exceptions.

OnUnhandledException ( object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e ) : void

Override this to add custom behavior for unhandled exceptions.

PrepareApplication ( ) : void

Provides an opportunity to hook into the application object.

SelectAssemblies ( ) : IEnumerable

Override to tell the framework where to find assemblies to inspect for views, etc.

StartDesignTime ( ) : void

Called by the bootstrapper's constructor at design time to start the framework.

StartRuntime ( ) : void

Called by the bootstrapper's constructor at runtime to start the framework.

메소드 상세

Bootstrapper() 공개 메소드

Creates an instance of the bootstrapper.
public Bootstrapper ( bool useApplication = true ) : System
useApplication bool Set this to false when hosting Illusion inside and Office or WinForms application. The default is true.
리턴 System

BuildUp() 보호된 메소드

Override this to provide an IoC specific implementation.
protected BuildUp ( object instance ) : void
instance object The instance to perform injection on.
리턴 void

Configure() 보호된 메소드

Override to configure the framework and setup your IoC container.
protected Configure ( ) : void
리턴 void

DisplayRootViewFor() 보호된 정적인 메소드

Locates the view model, locates the associate view, binds them and shows it as the root view.
protected static DisplayRootViewFor ( Application application, Type viewModelType ) : void
application System.Windows.Application The application.
viewModelType System.Type The view model type.
리턴 void

DisplayRootViewFor() 보호된 정적인 메소드

Locates the view model, locates the associate view, binds them and shows it as the root view.
protected static DisplayRootViewFor ( Type viewModelType ) : void
viewModelType System.Type The view model type.
리턴 void

GetAllInstances() 보호된 메소드

Override this to provide an IoC specific implementation
protected GetAllInstances ( Type service ) : IEnumerable
service System.Type The service to locate.
리턴 IEnumerable

GetInstance() 보호된 메소드

Override this to provide an IoC specific implementation.
protected GetInstance ( Type service, string key ) : object
service System.Type The service to locate.
key string The key to locate.
리턴 object

OnExit() 보호된 메소드

Override this to add custom behavior on exit.
protected OnExit ( object sender, EventArgs e ) : void
sender object The sender.
e System.EventArgs The event args.
리턴 void

OnStartup() 보호된 메소드

Override this to add custom behavior to execute after the application starts.
protected OnStartup ( object sender, System.Windows.StartupEventArgs e ) : void
sender object The sender.
e System.Windows.StartupEventArgs The args.
리턴 void

OnUnhandledException() 보호된 메소드

Override this to add custom behavior for unhandled exceptions.
protected OnUnhandledException ( object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e ) : void
sender object The sender.
e System.Windows.ApplicationUnhandledExceptionEventArgs The event args.
리턴 void

OnUnhandledException() 보호된 메소드

Override this to add custom behavior for unhandled exceptions.
protected OnUnhandledException ( object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e ) : void
sender object The sender.
e System.Windows.Threading.DispatcherUnhandledExceptionEventArgs The event args.
리턴 void

PrepareApplication() 보호된 메소드

Provides an opportunity to hook into the application object.
protected PrepareApplication ( ) : void
리턴 void

SelectAssemblies() 보호된 메소드

Override to tell the framework where to find assemblies to inspect for views, etc.
protected SelectAssemblies ( ) : IEnumerable
리턴 IEnumerable

StartDesignTime() 보호된 메소드

Called by the bootstrapper's constructor at design time to start the framework.
protected StartDesignTime ( ) : void
리턴 void

StartRuntime() 보호된 메소드

Called by the bootstrapper's constructor at runtime to start the framework.
protected StartRuntime ( ) : void
리턴 void