Class MefConventionsRegistrarBase
Base class for MEF conventions registrars.
Inheritance
System.Object
MefConventionsRegistrarBase
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Composition.Mef.Conventions
Assembly: Kephas.Composition.Mef.dll
Syntax
public abstract class MefConventionsRegistrarBase : IConventionsRegistrar
Methods
| Improve this Doc View SourceRegisterConventions(IConventionsBuilder, IList<Type>, ICompositionRegistrationContext)
Registers the conventions.
Declaration
public void RegisterConventions(IConventionsBuilder builder, IList<Type> candidateTypes, ICompositionRegistrationContext registrationContext)
Parameters
Type | Name | Description |
---|---|---|
IConventionsBuilder | builder | The registration builder. |
System.Collections.Generic.IList<System.Type> | candidateTypes | The candidate types which can take part in the composition. |
ICompositionRegistrationContext | registrationContext | Context for the registration. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the provided conventions are not MEF conventions. |
RegisterConventions(ConventionBuilder, IList<Type>, ICompositionRegistrationContext)
Registers the conventions.
Declaration
protected abstract void RegisterConventions(ConventionBuilder builder, IList<Type> candidateTypes, ICompositionRegistrationContext registrationContext)
Parameters
Type | Name | Description |
---|---|---|
System.Composition.Convention.ConventionBuilder | builder | The registration builder. |
System.Collections.Generic.IList<System.Type> | candidateTypes | The candidate types which can take part in the composition. |
ICompositionRegistrationContext | registrationContext | Context for the registration. |