Click or drag to resize

CompositionExtensions Class

Extension methods to simplify access of the composition host.
Inheritance Hierarchy
SystemObject
  TomsToolbox.Desktop.CompositionCompositionExtensions

Namespace:  TomsToolbox.Desktop.Composition
Assembly:  TomsToolbox.Desktop (in TomsToolbox.Desktop.dll) Version: 1.0.74.0
Syntax
public static class CompositionExtensions

The CompositionExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddCatalog(ICompositionHost, ComposablePartCatalog)
Adds a new catalog to the container.
Public methodStatic memberAddCatalog(ICompositionHost, Assembly)
Adds a new assembly catalog to the containers aggregate catalog.
Public methodStatic memberAddCatalog(ICompositionHost, Type)
Adds a new type catalog to the containers aggregate catalog.
Public methodStatic memberComposeExportedValueT
Public methodStatic memberGetExportedValueT(ICompositionHost)
Returns the exported object with the contract name derived from the specified type parameter. If there is not exactly one matching exported object, an exception is thrown.

[NotNull]

Public methodStatic memberGetExportedValueT(ICompositionHost, String)
Returns the exported object with the contract name derived from the specified type parameter. If there is not exactly one matching exported object, an exception is thrown.

[NotNull]

Public methodStatic memberGetExportedValueOrDefaultT(ICompositionHost)
Gets the exported object with the contract name derived from the specified type parameter or the default value for the specified type, or throws an exception if there is more than one matching exported object.

[CanBeNull]

Public methodStatic memberGetExportedValueOrDefaultT(ICompositionHost, String)
Gets the exported object with the contract name derived from the specified type parameter or the default value for the specified type, or throws an exception if there is more than one matching exported object.

[CanBeNull]

Public methodStatic memberGetExportedValuesT(ICompositionHost)
Gets all the exported objects with the contract name derived from the specified type parameter.

[NotNull, ItemNotNull]

Public methodStatic memberGetExportedValuesT(ICompositionHost, String)
Gets all the exported objects with the specified contract name.

[NotNull, ItemNotNull]

Public methodStatic memberGetExportsT(ICompositionHost)
Gets all the exports.

[NotNull, ItemNotNull]

Public methodStatic memberGetExportsT(ICompositionHost, String)
Gets all the exports with the specified contract name.

[NotNull, ItemNotNull]

Public methodStatic memberGetServiceT
Gets the service object of the specified type.

[CanBeNull]

Public methodStatic memberSatisfyImportsOnce
Composes the specified part, with recomposition and validation disabled.
Top
See Also