Namespace ToSic.Sys
ToSic.Sys is for internal helpers and base classes which are just FYI.
The innermost core of 2sic code is ToSic.Sys.
It's the innermost framework/library of core functionality.
This is a very technical documentation meant for developers of 2sxc or other developers who want to understand the inner workings of 2sxc.
The Sys has the following concerns
- Dependency Injection
- Logging
- Helpers
- Utilities
- Security
- etc.
History
- Introduced in 2sxc 15.0 as
ToSic.Lib(previously was part ofToSic.Eav) - Changed to
ToSic.Sysin 2sxc 19.0 to better reflect that it's the core system functionality.
Namespaces
- ToSic.Sys.Boot
ToSic.Sys.Boot is for managing the boot process and calling boot helpers in the right order.
Classes
- LazyGetAndLog<TValue>
A LazyGet<TValue> with logging.
- LazyGetAndReset<TValue>
A LazyGet<TValue> with the ability to reset or flush the value.
- LazyGet<TValue>
Simple helper class to use on object properties which should be generated once. Similar to Lazy(), but the generator function is passed in on the Get() call, not on the constructor.