Table of Contents

Interface IMefProvider

Namespace
WindowSill.API
Assembly
WindowSill.API.dll

Provides a way to import MEF components on the fly.

public interface IMefProvider
Extension Methods

Methods

ImportMany<TExport, TMetadataView>()

Imports the given type.

IEnumerable<Lazy<TExport, TMetadataView>> ImportMany<TExport, TMetadataView>()

Returns

IEnumerable<Lazy<TExport, TMetadataView>>

Type Parameters

TExport
TMetadataView

Import<TExport>()

Imports the given type.

TExport Import<TExport>()

Returns

TExport

Type Parameters

TExport

SatisfyImports(object)

Satisfies the imports of the specified object exactly once and they will not ever be recomposed.

void SatisfyImports(object @object)

Parameters

object object

The object containing MEF components to import.