Class DynamicTypeProvider
A class that loads certain external assemblies
Inheritance
Inherited Members
Namespace: TimeCockpit.Data.Extensibility
Assembly: TimeCockpit.Data.dll
Syntax
public static class DynamicTypeProvider
Properties
FunctionTypes
Gets the function type cache.
Declaration
public static Dictionary<string, Type> FunctionTypes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.Type> |
InterfaceTypes
Gets the interface types.
Declaration
public static Dictionary<string, Type> InterfaceTypes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.Type> |
TriggerTypes
Gets the validation method types.
Declaration
public static Dictionary<string, Type> TriggerTypes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.Type> |
TypeNameProviders
Gets the different type name providers.
Declaration
public static IDictionary<string, ITypeNameProvider> TypeNameProviders { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IDictionary<System.String, ITypeNameProvider> |
Methods
GetFunctionType(String)
Gets the type.
Declaration
public static Type GetFunctionType(string typeName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | typeName | Name of the type. |
Returns
| Type | Description |
|---|---|
| System.Type | A requested type. |
GetInterfaceType(String)
Gets the type from the interface cache or tries looking at specified locations for it.
Declaration
public static Type GetInterfaceType(string interfaceTypeName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | interfaceTypeName | Name of the type. |
Returns
| Type | Description |
|---|---|
| System.Type | A requested type. |
GetTriggerType(String)
Gets the type from the validationmethod cache or tries looking at specified locations for it.
Declaration
public static Type GetTriggerType(string triggerTypeName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | triggerTypeName | Name of the type. |
Returns
| Type | Description |
|---|---|
| System.Type | A requested type. |
RegisterFunction(MethodInfo)
Registers a function to use e.g. in TCQL
Declaration
public static void RegisterFunction(MethodInfo methInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Reflection.MethodInfo | methInfo | The method info of a function. |
RegisterFunction(Type)
Registers the function.
Declaration
public static void RegisterFunction(Type functionType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | functionType | Type of the function. |
RegisterInterface(Type)
Registers the interface.
Declaration
public static void RegisterInterface(Type interfaceType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | interfaceType | Type of the interface. |
RegisterTriggerMethod(Type)
Registers the validation method.
Declaration
public static void RegisterTriggerMethod(Type triggerType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | triggerType | Type of the validation method. |
UnregisterTypeNameProvider(String)
Unregisters the type name provider.
Declaration
public static void UnregisterTypeNameProvider(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the type name provider to unregister. |