Show / Hide Table of Contents

Class Bootstrapper

Bootstraps the MEF container used to manage Colectica application extensibility.

Inheritance
object
Bootstrapper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model
Assembly: Algenta.Colectica.Model.dll
Syntax
public class Bootstrapper

Constructors

Bootstrapper()

Initializes a new instance of the Bootstrapper class.

Declaration
public Bootstrapper()

Properties

AggregateCatalog

Gets or sets MEF's aggregate catalog.

Declaration
public AggregateCatalog AggregateCatalog { get; protected set; }
Property Value
Type Description
AggregateCatalog

AllIdentifierServices

Gets or all identifier services available as MEF addins.

Declaration
[ImportMany]
public Collection<IIdentifierService> AllIdentifierServices { get; set; }
Property Value
Type Description
Collection<IIdentifierService>

AssembliesForCatalog

Gets a list of assemblies that will be loaded into the assembly catalog

Declaration
public static List<Assembly> AssembliesForCatalog { get; }
Property Value
Type Description
List<Assembly>

Container

Gets or sets the MEF container.

Declaration
public CompositionContainer Container { get; protected set; }
Property Value
Type Description
CompositionContainer

Current

Gets the one and only bootstrapper instance.

Declaration
public static Bootstrapper Current { get; }
Property Value
Type Description
Bootstrapper

IdentifierService

Gets or sets the identifier service to use for identifying newly created IVersionable items.

Declaration
public IIdentifierService IdentifierService { get; set; }
Property Value
Type Description
IIdentifierService

UiTaskScheduler

Gets or sets the User interface task scheduler, which can be used to create continuations from Task objects that will run on the user interface thread.

Declaration
public TaskScheduler UiTaskScheduler { get; set; }
Property Value
Type Description
TaskScheduler

Methods

ConfigureAggregateCatalog()

Configures the MEF aggregate catalog, loading addins from the core Colectica assemblies, the Addins directory under the installed location, and the %appdata%\Algenta\Colectica\Addins directory.

Declaration
public void ConfigureAggregateCatalog()

GetInstance<T>()

Uses the MEF container to create an instance of an object of the specified type. This method should be avoided in favor of [Import] or [ImportMany] style injection.

Declaration
public T GetInstance<T>() where T : class
Returns
Type Description
T
Type Parameters
Name Description
T

The type of object to instantiate.

InitializeContainer()

Initializes the MEF container and composes the application.

Declaration
public void InitializeContainer()

Extension Methods

Extensions.Yield<T>(T)
In this article
Back to top Generated by DocFX