Show / Hide Table of Contents

Class AppServiceInfo

Information about the application service.

Inheritance
System.Object
System.Dynamic.DynamicObject
ExpandoBase
Expando
AppServiceInfo
Implements
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
IAppServiceInfo
Inherited Members
ExpandoBase.Item[String]
ExpandoBase.GetDynamicMemberNames()
ExpandoBase.HasDynamicMember(String)
ExpandoBase.TryGetMember(GetMemberBinder, Object)
ExpandoBase.TrySetMember(SetMemberBinder, Object)
ExpandoBase.TryInvokeMember(InvokeMemberBinder, Object[], Object)
ExpandoBase.ToDictionary(Func<String, String>, Func<Object, Object>)
ExpandoBase.GetInnerObjectTypeInfo()
ExpandoBase.GetThisTypeInfo()
ExpandoBase.TryGetValue(String, Object)
ExpandoBase.TrySetValue(String, Object)
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
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)
Namespace: Kephas.Services.Reflection
Assembly: Kephas.Core.dll
Syntax
public class AppServiceInfo : Expando, IExpando, IDynamicMetaObjectProvider, IIndexable, IAppServiceInfo

Constructors

| Improve this Doc View Source

AppServiceInfo(Type, AppServiceLifetime, Boolean)

Initializes a new instance of the AppServiceInfo class.

Declaration
public AppServiceInfo(Type contractType, AppServiceLifetime lifetime = AppServiceLifetime.Singleton, bool asOpenGeneric = false)
Parameters
Type Name Description
System.Type contractType

The contract type of the export.

AppServiceLifetime lifetime

Optional. The application service lifetime.

System.Boolean asOpenGeneric

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

| Improve this Doc View Source

AppServiceInfo(Type, Func<ICompositionContext, Object>, AppServiceLifetime)

Initializes a new instance of the AppServiceInfo class.

Declaration
public AppServiceInfo(Type contractType, Func<ICompositionContext, object> serviceInstanceFactory, AppServiceLifetime lifetime = AppServiceLifetime.Transient)
Parameters
Type Name Description
System.Type contractType

The contract type of the export.

System.Func<ICompositionContext, System.Object> serviceInstanceFactory

The service instance factory.

AppServiceLifetime lifetime

Optional. The application service lifetime.

| Improve this Doc View Source

AppServiceInfo(Type, Object)

Initializes a new instance of the AppServiceInfo class.

Declaration
public AppServiceInfo(Type contractType, object serviceInstance)
Parameters
Type Name Description
System.Type contractType

The contract type of the export.

System.Object serviceInstance

The service instance.

| Improve this Doc View Source

AppServiceInfo(Type, Type, AppServiceLifetime, Boolean)

Initializes a new instance of the AppServiceInfo class.

Declaration
public AppServiceInfo(Type contractType, Type serviceInstanceType, AppServiceLifetime lifetime = AppServiceLifetime.Singleton, bool asOpenGeneric = false)
Parameters
Type Name Description
System.Type contractType

The contract type of the export.

System.Type serviceInstanceType

Type of the service instance.

AppServiceLifetime lifetime

Optional. The application service lifetime.

System.Boolean asOpenGeneric

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

Properties

| Improve this Doc View Source

AllowMultiple

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

Declaration
public bool AllowMultiple { get; set; }
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
public 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
public 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
public object Instance { get; }
Property Value
Type Description
System.Object

The service instance.

| Improve this Doc View Source

InstanceFactory

Gets the service instance factory.

Declaration
public 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
public 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
public AppServiceLifetime Lifetime { get; }
Property Value
Type Description
AppServiceLifetime

The application service lifetime.

| Improve this Doc View Source

MetadataAttributes

Gets or sets the supported metadata attributes.

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

The metadata attributes.

Remarks

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

Methods

| Improve this Doc View Source

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
System.String

A string that represents the current object.

Overrides
System.Object.ToString()

Implements

IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
IAppServiceInfo

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>)
ExpandoExtensions.Merge<T>(T, Object)
ExpandoExtensions.GetLaxValue<T>(IIndexable, String, T)
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