Class AutomaticTypeRegistry
Automatic type registry for polymorphic work with REDB objects
Scans loaded assemblies and builds mapping scheme_id/scheme_name -> C# type
public class AutomaticTypeRegistry
Inheritance
Properties
Methods
GetStatistics()
Get registry statistics
public static (int SchemeNames, int SchemeIds) GetStatistics()
GetTypeBySchemeName(string)
Get C# type by scheme name
public static Type? GetTypeBySchemeName(string schemeName)
InitializeAsync(ISchemeSyncProvider, ILogger?)
Initialize type registry at application startup.
public static Task InitializeAsync(ISchemeSyncProvider schemeProvider, ILogger? logger = null)
RegisterType(string, long, Type)
Register type manually (for cases when automatic scanning doesn't work)
public static void RegisterType(string schemeName, long schemeId, Type type)