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

Instantiate this class in order to configure the framework.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Bootstrapper ( ) : 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.

DisplayRootView ( ) : void

Override to display your UI at startup.

GetAllInstances ( Type service ) : IEnumerable

Override this to provide an IoC specific impelentation

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.

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

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

Creates an instance of the bootstrapper.
public Bootstrapper ( ) : System
Результат 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

DisplayRootView() защищенный Метод

Override to display your UI at startup.
protected DisplayRootView ( ) : void
Результат void

GetAllInstances() защищенный Метод

Override this to provide an IoC specific impelentation
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