Ark Component Design (1) and ark Component Design
The Ark component is a rapid development glue frame that L. Skyler has been accumulating and optimizing since its work.
The goal of Ark is to help developers start a new project and reuse existing functions as much as possible. This prevents project development from being affected by the development of some basic components.
Ark defines a series of basic functions and provides different implementations. Features include: IoC components, logs, caches, settings, localization, data access layer based on Warehousing and work units, universal SQLHelper compatible with multiple databases, and various other Helper.
Each function in the component is developed based on the interface, which can be well decoupled and replaced.
IoC layer:
Defines registration, positioning, and container interfaces.
Log function:
ILoggerFactory and ILogger are defined. You can depend on ILoggerFactory or ILogger. Different ILogger types can be dynamically obtained based on ILoggerFactory. Dependent on ILogger, the IoC container can automatically attach it by injecting attributes.
Cache function:
ICacheProvider, ICacheManager, and ICacheManagerFactory are defined.
Settings:
Localization:
Data access layer: