Class AppServiceInfoConventionsRegistrar
Base for conventions registrars of application services.
Inheritance
Implements
Inherited Members
Namespace: Kephas.Services.Composition
Assembly: Kephas.Core.dll
Syntax
public class AppServiceInfoConventionsRegistrar : IConventionsRegistrar
Methods
| Improve this Doc View SourceConfigurePartBuilder(IPartConventionsBuilder, Type, IAppServiceInfo, IList<Type>, ILogger)
Configures the part builder.
Declaration
protected void ConfigurePartBuilder(IPartConventionsBuilder partBuilder, Type serviceContract, IAppServiceInfo appServiceInfo, IList<Type> appServiceContracts, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| IPartConventionsBuilder | partBuilder | The part builder. |
| System.Type | serviceContract | The service contract. |
| IAppServiceInfo | appServiceInfo | The application service metadata. |
| System.Collections.Generic.IList<System.Type> | appServiceContracts | The application service contracts. |
| ILogger | logger | The logger. |
GetAppServiceContracts(IList<Type>, ICompositionRegistrationContext)
Gets the application service contracts to register.
Declaration
protected virtual IEnumerable<(Type contractType, IAppServiceInfo appServiceInfo)> GetAppServiceContracts(IList<Type> candidateTypes, ICompositionRegistrationContext registrationContext)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IList<System.Type> | candidateTypes | The candidate types which can take part in the composition. |
| ICompositionRegistrationContext | registrationContext | The registration context. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.ValueTuple<System.Type, IAppServiceInfo>> | An enumeration of key-value pairs, where the key is the TypeInfo and the value is the IAppServiceInfo. |
GetAppServiceInfoProviders(IList<Type>, ICompositionRegistrationContext)
Gets the application service information providers.
Declaration
protected virtual IEnumerable<IAppServiceInfoProvider> GetAppServiceInfoProviders(IList<Type> candidateTypes, ICompositionRegistrationContext registrationContext)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IList<System.Type> | candidateTypes | The candidate types which can take part in the composition. |
| ICompositionRegistrationContext | registrationContext | Context for the registration. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<IAppServiceInfoProvider> | An enumeration of IAppServiceInfoProvider objects. |
RegisterConventions(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. |