Show / Hide Table of Contents

Class DefaultProjectedTypeResolver

A default projected type resolver.

Inheritance
System.Object
DefaultProjectedTypeResolver
Implements
IProjectedTypeResolver
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.Model
Assembly: Kephas.Core.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultProjectedTypeResolver : IProjectedTypeResolver

Constructors

| Improve this Doc View Source

DefaultProjectedTypeResolver(ITypeResolver)

Initializes a new instance of the DefaultProjectedTypeResolver class.

Declaration
public DefaultProjectedTypeResolver(ITypeResolver typeResolver)
Parameters
Type Name Description
ITypeResolver typeResolver

The type resolver.

Methods

| Improve this Doc View Source

GetProjectionForAttribute(Type, IContext)

Gets the projection for attribute.

Declaration
protected virtual ProjectionForAttribute GetProjectionForAttribute(Type projectionType, IContext context)
Parameters
Type Name Description
System.Type projectionType

The projection type.

IContext context

An optional context for the resolution.

Returns
Type Description
ProjectionForAttribute

The projection for attribute.

| Improve this Doc View Source

ResolveProjectedType(Type, IContext, Boolean)

Resolves the projected type.

Declaration
public virtual Type ResolveProjectedType(Type projectionType, IContext context = null, bool throwOnNotFound = true)
Parameters
Type Name Description
System.Type projectionType

The projection type.

IContext context

An optional context for the resolution.

System.Boolean throwOnNotFound

Indicates whether to throw or not when the indicated type is not found.

Returns
Type Description
System.Type

The resolved type or null, if throwOnNotFound is set to false and a projected type could not be found.

Exceptions
Type Condition
ServiceException

Thrown when a Service error condition occurs.

Implements

IProjectedTypeResolver

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