DevToys logo DevToys
  • Home
  • Blog
  • Documentation
  • Download
Search Results for

    Show / Hide Table of Contents

    Interface IMefProvider

    Provides a way to import MEF components on the fly.

    Namespace: DevToys.Api
    Assembly: DevToys.Api.dll
    Syntax
    public interface IMefProvider

    Methods

    ImportMany<TExport, TMetadataView>()

    Imports the given type.

    Declaration
    IEnumerable<Lazy<TExport, TMetadataView>> ImportMany<TExport, TMetadataView>()
    Returns
    Type Description
    IEnumerable<Lazy<TExport, TMetadataView>>
    Type Parameters
    Name Description
    TExport
    TMetadataView

    Import<TExport>()

    Imports the given type.

    Declaration
    TExport Import<TExport>()
    Returns
    Type Description
    TExport
    Type Parameters
    Name Description
    TExport

    SatisfyImports(object)

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

    Declaration
    void SatisfyImports(object @object)
    Parameters
    Type Name Description
    object object

    The object containing MEF components to import.

    Extension Methods

    LoggingExtensions.Log<T>(T)
    In this article
    DevToys logo © 2024 DevToys