Class GuidTypeResolver<T, A>
Provides default type resolver implementation which looks for types in listed assemblies looking for types decorated with the specified attribute
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: Azos.Apps
Assembly: Azos.dll
Syntax
public class GuidTypeResolver<T, A> : IGuidTypeResolver where T : class where A : GuidTypeAttribute
Type Parameters
Name | Description |
---|---|
T | |
A |
Constructors
GuidTypeResolver(IConfigSectionNode)
Declaration
public GuidTypeResolver(IConfigSectionNode conf)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | conf |
GuidTypeResolver(IDictionary<Guid, Type>)
Declaration
public GuidTypeResolver(IDictionary<Guid, Type> mappings)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.Guid, System.Type> | mappings |
GuidTypeResolver(Type[])
Declaration
public GuidTypeResolver(params Type[] types)
Parameters
Type | Name | Description |
---|---|---|
System.Type[] | types |
Fields
CONFIG_ASSEMBLY_SECTION
Declaration
public const string CONFIG_ASSEMBLY_SECTION = "assembly"
Field Value
Type | Description |
---|---|
System.String |
CONFIG_NS_ATTR
Declaration
public const string CONFIG_NS_ATTR = "ns"
Field Value
Type | Description |
---|---|
System.String |
Methods
Resolve(Guid)
Resolves the GUID into type object or throws
Declaration
public Type Resolve(Guid guid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | guid |
Returns
Type | Description |
---|---|
System.Type |
TryResolve(Guid)
Resolves the GUID into type object or return null
Declaration
public Type TryResolve(Guid guid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | guid |
Returns
Type | Description |
---|---|
System.Type |