Class DefaultProjectedTypeResolver
A default projected type resolver.
Inheritance
System.Object
DefaultProjectedTypeResolver
Implements
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 SourceDefaultProjectedTypeResolver(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 SourceGetProjectionForAttribute(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. |
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 |
Exceptions
Type | Condition |
---|---|
ServiceException | Thrown when a Service error condition occurs. |