API Reference
This section contains the complete API reference for CodeLogic 3, generated from XML documentation comments in the source code.
Namespaces
| Namespace | Description |
|---|---|
CodeLogic |
Entry point (CodeLogic static class), Libraries, CodeLogicEnvironment |
CodeLogic.Core |
Core abstractions: IEventBus, ILogger, IConfigurationManager, ILocalizationManager, Result<T>, Error |
CodeLogic.Framework |
Library, application, and plugin contracts: ILibrary, IApplication, IPlugin, manifests, contexts |
CodeLogic.Runtime |
Internal runtime — boot sequence, LibraryManager, PluginManager |
Key Types
Entry Point
CodeLogic— static class withInitializeAsync,ConfigureAsync,StartAsync,StopAsync,GetHealthAsyncLibraries—LoadAsync<T>()to register libraries
Library Development
ILibrary— implement this for a libraryLibraryContext— provided to each lifecycle phaseLibraryManifest— describes a library's identity and dependencies
Application Development
IApplication— implement this for the host applicationApplicationContext— provided to the application lifecycle
Plugin Development
IPlugin— implement this for a hot-reloadable pluginPluginContext— provided to each plugin lifecycle phasePluginManager— manages plugin load/unload/reload
Core Abstractions
IEventBus— publish/subscribe event busIEvent— marker interface for eventsILogger— structured loggerConfigModelBase— base class for config modelsLocalizationModelBase— base class for localization models
Results
Result<T>— discriminated union for success/failureResult— non-generic resultError— structured error withErrorCode
Health Checks
HealthStatus— Healthy / Degraded / Unhealthy with message and dataHealthReport— aggregated health across all components