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
TExportTMetadataView
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
objectobjectThe object containing MEF components to import.