Show / Hide Table of Contents

Interface IAppServiceInfo

Contract interface providing information about an application service.

Namespace: Kephas.Services.Reflection
Assembly: Kephas.Core.dll
Syntax
public interface IAppServiceInfo

Properties

| Improve this Doc View Source

AllowMultiple

Gets a value indicating whether multiple services for this contract are allowed.

Declaration
bool AllowMultiple { get; }
Property Value
Type Description
System.Boolean

true if multiple services are allowed; otherwise, false.

| Improve this Doc View Source

AsOpenGeneric

Gets a value indicating whether the contract should be exported as an open generic.

Declaration
bool AsOpenGeneric { get; }
Property Value
Type Description
System.Boolean

true if the contract should be exported as an open generic; otherwise, false.

| Improve this Doc View Source

ContractType

Gets the contract type of the export.

Declaration
Type ContractType { get; }
Property Value
Type Description
System.Type

The contract type of the export.

| Improve this Doc View Source

Instance

Gets the service instance.

Declaration
object Instance { get; }
Property Value
Type Description
System.Object

The service instance.

| Improve this Doc View Source

InstanceFactory

Gets the service instance factory.

Declaration
Func<ICompositionContext, object> InstanceFactory { get; }
Property Value
Type Description
System.Func<ICompositionContext, System.Object>

The service instance factory.

| Improve this Doc View Source

InstanceType

Gets the type of the service instance.

Declaration
Type InstanceType { get; }
Property Value
Type Description
System.Type

The type of the service instance.

| Improve this Doc View Source

Lifetime

Gets the application service lifetime.

Declaration
AppServiceLifetime Lifetime { get; }
Property Value
Type Description
AppServiceLifetime

The application service lifetime.

| Improve this Doc View Source

MetadataAttributes

Gets the supported metadata attributes.

Declaration
Type[] MetadataAttributes { get; }
Property Value
Type Description
System.Type[]

The metadata attributes.

Remarks

The metadata attributes are used to register the conventions for application services.

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)
AppServiceInfoExtensions.IsSingleton(IAppServiceInfo)
AppServiceInfoExtensions.IsScoped(IAppServiceInfo)
AppServiceInfoExtensions.IsTransient(IAppServiceInfo)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX