Class DynamicTypeProvider
- Namespace
- TimeCockpit.Data.Extensibility
- Assembly
- TimeCockpit.Data.dll
A class that loads certain external assemblies
public static class DynamicTypeProvider
- Inheritance
-
ObjectDynamicTypeProvider
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Properties
FunctionTypes
Gets the function type cache.
public static Dictionary<string, Type> FunctionTypes { get; }
Property Value
- Dictionary<String, Type>
InterfaceTypes
Gets the interface types.
public static Dictionary<string, Type> InterfaceTypes { get; }
Property Value
- Dictionary<String, Type>
TriggerTypes
Gets the validation method types.
public static Dictionary<string, Type> TriggerTypes { get; }
Property Value
- Dictionary<String, Type>
TypeNameProviders
Gets the different type name providers.
public static IDictionary<string, ITypeNameProvider> TypeNameProviders { get; }
Property Value
- IDictionary<String, ITypeNameProvider>
Methods
GetFunctionType(String)
Gets the type.
public static Type GetFunctionType(string typeName)
Parameters
typeNameStringName of the type.
Returns
- Type
A requested type.
GetInterfaceType(String)
Gets the type from the interface cache or tries looking at specified locations for it.
public static Type GetInterfaceType(string interfaceTypeName)
Parameters
interfaceTypeNameStringName of the type.
Returns
- Type
A requested type.
GetTriggerType(String)
Gets the type from the validationmethod cache or tries looking at specified locations for it.
public static Type GetTriggerType(string triggerTypeName)
Parameters
triggerTypeNameStringName of the type.
Returns
- Type
A requested type.
RegisterFunction(MethodInfo)
Registers a function to use e.g. in TCQL
public static void RegisterFunction(MethodInfo methInfo)
Parameters
methInfoMethodInfoThe method info of a function.
RegisterFunction(Type)
Registers the function.
public static void RegisterFunction(Type functionType)
Parameters
functionTypeTypeType of the function.
RegisterInterface(Type)
Registers the interface.
public static void RegisterInterface(Type interfaceType)
Parameters
interfaceTypeTypeType of the interface.
RegisterTriggerMethod(Type)
Registers the validation method.
public static void RegisterTriggerMethod(Type triggerType)
Parameters
triggerTypeTypeType of the validation method.
UnregisterTypeNameProvider(String)
Unregisters the type name provider.
public static void UnregisterTypeNameProvider(string name)
Parameters
nameStringThe name of the type name provider to unregister.