Show / Hide Table of Contents

Class AppServiceType

Classifier class for application services.

Inheritance
System.Object
System.Dynamic.DynamicObject
ExpandoBase
Expando
NamedElementBase<IAppServiceType>
ModelElementBase<IAppServiceType>
ClassifierBase<IAppServiceType>
AppServiceType
Implements
IAppServiceType
IAppServiceInfo
IClassifier
IModelElement
INamedElement
IAggregatedElementInfo
ITypeInfo
IElementInfo
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
IAttributeProvider
Inherited Members
ClassifierBase<IAppServiceType>.Projection
ClassifierBase<IAppServiceType>.Properties
ClassifierBase<IAppServiceType>.Methods
ClassifierBase<IAppServiceType>.ITypeInfo.Members
ClassifierBase<IAppServiceType>.IsMixin
ClassifierBase<IAppServiceType>.BaseClassifier
ClassifierBase<IAppServiceType>.BaseMixins
ClassifierBase<IAppServiceType>.IsAspect
ClassifierBase<IAppServiceType>.Namespace
ClassifierBase<IAppServiceType>.ITypeInfo.BaseTypes
ClassifierBase<IAppServiceType>.GenericTypeParameters
ClassifierBase<IAppServiceType>.GenericTypeArguments
ClassifierBase<IAppServiceType>.GenericTypeDefinition
ClassifierBase<IAppServiceType>.ITypeInfo.Properties
ClassifierBase<IAppServiceType>.IsAspectOf(IClassifier)
ClassifierBase<IAppServiceType>.ITypeInfo.GetMember(String, Boolean)
ClassifierBase<IAppServiceType>.MakeGenericType(IEnumerable<ITypeInfo>, IContext)
ClassifierBase<IAppServiceType>.ComputeIsMixin()
ClassifierBase<IAppServiceType>.ComputeIsAspect()
ClassifierBase<IAppServiceType>.ComputeIsAspectOf()
ClassifierBase<IAppServiceType>.OnCompleteConstruction(IModelConstructionContext)
ClassifierBase<IAppServiceType>.ComputeBaseTypes(IModelConstructionContext, IList<ITypeInfo>)
ModelElementBase<IAppServiceType>.Members
ModelElementBase<IAppServiceType>.Annotations
ModelElementBase<IAppServiceType>.GetMember(String, Boolean)
ModelElementBase<IAppServiceType>.AddMember(INamedElement)
NamedElementBase<IAppServiceType>.Logger
NamedElementBase<IAppServiceType>.Name
NamedElementBase<IAppServiceType>.IElementInfo.DeclaringContainer
NamedElementBase<IAppServiceType>.IElementInfo.Annotations
NamedElementBase<IAppServiceType>.IAggregatedElementInfo.Parts
NamedElementBase<IAppServiceType>.QualifiedFullName
NamedElementBase<IAppServiceType>.FullName
NamedElementBase<IAppServiceType>.DeclaringContainer
NamedElementBase<IAppServiceType>.ModelSpace
NamedElementBase<IAppServiceType>.IsInherited
NamedElementBase<IAppServiceType>.ConstructionMonitor
NamedElementBase<IAppServiceType>.Parts
NamedElementBase<IAppServiceType>.ToString()
NamedElementBase<IAppServiceType>.GetAttributes<TAttribute>()
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.Model.Elements
Assembly: Kephas.Model.dll
Syntax
public class AppServiceType : ClassifierBase<IAppServiceType>, IConstructibleElement, IAppServiceType, IAppServiceInfo, IClassifier, IModelElement, INamedElement, IAggregatedElementInfo, ITypeInfo, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider

Constructors

| Improve this Doc View Source

AppServiceType(IModelConstructionContext, IAppServiceInfo, String)

Initializes a new instance of the AppServiceType class.

Declaration
public AppServiceType(IModelConstructionContext constructionContext, IAppServiceInfo appServiceInfo, string name)
Parameters
Type Name Description
IModelConstructionContext constructionContext

Context for the construction.

IAppServiceInfo appServiceInfo

The application service information.

System.String name

The name.

Properties

| Improve this Doc View Source

AllowMultiple

Gets a value indicating whether the service allows multiple service types.

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

True if allow multiple, false if not.

| Improve this Doc View Source

AsOpenGeneric

Gets a value indicating whether the service is exported as an open generic.

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

True if the service is exported as an open generic, false if not.

| Improve this Doc View Source

ContractType

Gets the type of the contract.

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

The type of the contract.

| 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 service lifetime.

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

The service lifetime.

| Improve this Doc View Source

MetadataAttributes

Gets the supported metadata attributes.

Declaration
public 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.

Methods

| Improve this Doc View Source

AddPart(Object)

Adds a part to the aggregated element.

Declaration
protected override void AddPart(object part)
Parameters
Type Name Description
System.Object part

The part to be added.

Overrides
Kephas.Model.Elements.NamedElementBase<Kephas.Model.IAppServiceType>.AddPart(System.Object)
| Improve this Doc View Source

ComputeBaseClassifier(IModelConstructionContext, IEnumerable<ITypeInfo>)

Calculates the base classifier.

Declaration
protected override IClassifier ComputeBaseClassifier(IModelConstructionContext constructionContext, IEnumerable<ITypeInfo> baseTypes)
Parameters
Type Name Description
IModelConstructionContext constructionContext

Context for the construction.

System.Collections.Generic.IEnumerable<ITypeInfo> baseTypes

List of base types.

Returns
Type Description
IClassifier

The calculated base classifier.

Overrides
Kephas.Model.Elements.ClassifierBase<Kephas.Model.IAppServiceType>.ComputeBaseClassifier(Kephas.Model.Construction.IModelConstructionContext, System.Collections.Generic.IEnumerable<Kephas.Reflection.ITypeInfo>)
| Improve this Doc View Source

ComputeBaseMixins(IModelConstructionContext, IEnumerable<ITypeInfo>)

Calculates the base mixins.

Declaration
protected override IEnumerable<IClassifier> ComputeBaseMixins(IModelConstructionContext constructionContext, IEnumerable<ITypeInfo> baseTypes)
Parameters
Type Name Description
IModelConstructionContext constructionContext

Context for the construction.

System.Collections.Generic.IEnumerable<ITypeInfo> baseTypes

List of base types.

Returns
Type Description
System.Collections.Generic.IEnumerable<IClassifier>

The calculated base mixins.

Overrides
Kephas.Model.Elements.ClassifierBase<Kephas.Model.IAppServiceType>.ComputeBaseMixins(Kephas.Model.Construction.IModelConstructionContext, System.Collections.Generic.IEnumerable<Kephas.Reflection.ITypeInfo>)
| Improve this Doc View Source

CreateInstance(IEnumerable<Object>)

Creates an instance with the provided arguments (if any).

Declaration
public override object CreateInstance(IEnumerable<object> args = null)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Object> args

The arguments.

Returns
Type Description
System.Object

The new instance.

Overrides
Kephas.Model.Elements.ClassifierBase<Kephas.Model.IAppServiceType>.CreateInstance(System.Collections.Generic.IEnumerable<System.Object>)

Implements

IAppServiceType
IAppServiceInfo
IClassifier
IModelElement
INamedElement
IAggregatedElementInfo
ITypeInfo
IElementInfo
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
IAttributeProvider

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)
ModelElementExtensions.GetDeclaredMembers(IModelElement)
RuntimeTypeInfoExtensions.IsExcludedFromModel(IAttributeProvider)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX