• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Dapplo.Addons
    • IAction
    • IApplicationBootstrapper
    • IAsyncShutdownAction
    • IAsyncStartupAction
    • IBootstrapper
    • IDependencyProvider
    • IMefServiceLocator
    • IModule
    • IServiceExporter
    • IServiceRepository
    • IShutdownAction
    • IShutdownMetadata
    • IShutdownModule
    • IStartupAction
    • IStartupMetadata
    • IStartupModule
    • ModuleAttribute
    • ShutdownActionAttribute
    • StartupActionAttribute
    • StartupException
  • Dapplo.Addons.Bootstrapper
    • ApplicationBootstrapper
    • CompositionBootstrapper
    • ResourceMutex
    • StartupShutdownBootstrapper
  • Dapplo.Addons.Bootstrapper.Internal
    • CompressionTypes
    • StreamExtensions
  • Dapplo.Addons.Bootstrapper.Resolving
    • AssemblyResolver
    • EmbeddedResources
    • FileLocations
    • FileTools

Interface IBootstrapper

This is the interface for all bootstrappers

Inherited Members
IMefServiceLocator.GetExport<T>(String)
IMefServiceLocator.GetExport<T, TMetaData>(String)
IMefServiceLocator.GetExport(Type, String)
IMefServiceLocator.GetExports<T>(String)
IMefServiceLocator.GetExports(Type, String)
IMefServiceLocator.GetExports<T, TMetaData>(String)
IServiceExporter.Export<T>(T, IDictionary<String, Object>)
IServiceExporter.Export(Type, Object, IDictionary<String, Object>)
IServiceExporter.Export<T>(String, T, IDictionary<String, Object>)
IServiceExporter.Export(Type, String, Object, IDictionary<String, Object>)
IServiceExporter.Release(ComposablePart)
IServiceExporter.ExportProviders
IServiceRepository.KnownAssemblies
IServiceRepository.KnownFiles
IServiceRepository.Add(Assembly)
IServiceRepository.Add(AssemblyCatalog)
IServiceRepository.Add(Type)
IServiceRepository.AddScanDirectory(String)
IServiceRepository.AddScanDirectories(IEnumerable<String>)
IServiceRepository.FindAndLoadAssembly(String, IEnumerable<String>)
IServiceRepository.FindAndLoadAssemblies(String, Boolean, IEnumerable<String>)
IServiceRepository.FindAndLoadAssembliesFromDirectory(String, Regex, Boolean)
IServiceRepository.FindAndLoadAssembliesFromDirectory(String, String, Boolean, IEnumerable<String>)
IServiceRepository.FindAndLoadAssemblies(IEnumerable<String>, Regex, Boolean)
IDependencyProvider.ProvideDependencies(Object)
Namespace:Dapplo.Addons
Assembly:Dapplo.Addons.dll
Syntax
public interface IBootstrapper : IServiceLocator, IMefServiceLocator, IServiceExporter, IServiceRepository, IDependencyProvider, IDisposable

Properties

| Improve this Doc View Source

IsInitialized

Is this IBootstrapper initialized?

Declaration
bool IsInitialized { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

InitializeAsync(CancellationToken)

Initialize the bootstrapper

Declaration
Task<bool> InitializeAsync(CancellationToken cancellationToken = null)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task<System.Boolean>
| Improve this Doc View Source

RegisterForDisposal(IDisposable)

Register a disposable, to dispose when the IBootstrapper is disposed

Declaration
void RegisterForDisposal(IDisposable disposable)
Parameters
Type Name Description
IDisposable disposable

IDisposable to dispose together with the bootstapper

| Improve this Doc View Source

RunAsync(CancellationToken)

Start the bootstrapper, initialize is automatically called when needed

Declaration
Task<bool> RunAsync(CancellationToken cancellationToken = null)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task<System.Boolean>
| Improve this Doc View Source

StopAsync(CancellationToken)

Stop the bootstrapper, this cleans up resources and makes it possible to hook into it. Is also called when being disposed, but as Dispose in not Async this could cause some issues.

Declaration
Task<bool> StopAsync(CancellationToken cancellationToken = null)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task<System.Boolean>
  • Improve this Doc
  • View Source
Back to top Copyright © 2017 Dapplo