PartDiscovery Class

Definition

public abstract class PartDiscovery
type PartDiscovery = class
Public MustInherit Class PartDiscovery
Inheritance
PartDiscovery
Derived

Constructors

PartDiscovery(Resolver)

Properties

Resolver

Methods

AddElement(Array, Object, Type)

Creates an array that contains the contents of a prior array (if any) and one additional element.

Combine(PartDiscovery[])

Creates an aggregate PartDiscovery instance that delegates to a series of other part discovery extensions.

CreatePart(Type)

Reflects on a type and returns metadata on its role as a MEF part, if applicable.

CreatePart(Type, Boolean)

Reflects on a type and returns metadata on its role as a MEF part, if applicable.

CreatePartsAsync(Assembly, CancellationToken)

Reflects over an assembly and produces MEF parts for every applicable type.

CreatePartsAsync(IEnumerable<Assembly>, IProgress<DiscoveryProgress>, CancellationToken)

Reflects over a set of assemblies and produces MEF parts for every applicable type.

CreatePartsAsync(IEnumerable<String>, IProgress<DiscoveryProgress>, CancellationToken)

Reflects over a set of assemblies and produces MEF parts for every applicable type.

CreatePartsAsync(IEnumerable<Type>, CancellationToken)
CreatePartsAsync(Type[])
GetContractName(Type)
GetElementTypeFromMany(Type)
GetExportTypeIdentityConstraints(Type)
GetImportingConstructor<TImportingConstructorAttribute>(Type, Boolean)
GetImportingSiteTypeWithoutCollection(ImportDefinition, Type)
GetImportMetadataForGenericTypeImport(Type)
GetMetadataViewConstraints(Type, Boolean)
GetTypeIdentityFromImportingType(Type, Boolean)
GetTypeIdentityFromImportingTypeRef(TypeRef, Boolean)
GetTypes(Assembly)

Gets the types to consider for MEF parts.

IsExportFactoryType(Type)
ThrowOnInvalidExportingMember(ICustomAttributeProvider)

Throws an exception if certain basic rules for an exporting member are violated.

ThrowOnInvalidImportingMemberOrParameter(ICustomAttributeProvider, Boolean)

Throws an exception if certain basic rules for an importing member or parameter are violated.

Applies to