Show / Hide Table of Contents

Class AppServiceInfoConventionsRegistrar

Base for conventions registrars of application services.

Inheritance
System.Object
AppServiceInfoConventionsRegistrar
Implements
IConventionsRegistrar
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.Services.Composition
Assembly: Kephas.Core.dll
Syntax
public class AppServiceInfoConventionsRegistrar : IConventionsRegistrar

Methods

| Improve this Doc View Source

ConfigurePartBuilder(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Implements

IConventionsRegistrar

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX