Table of Contents

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

  1. Introduced in 2sxc 15.0 as ToSic.Lib (previously was part of ToSic.Eav)
  2. Changed to ToSic.Sys in 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.

ToSic.Sys.Caching
ToSic.Sys.Coding
ToSic.Sys.Configuration
ToSic.Sys.DI
ToSic.Sys.Documentation
ToSic.Sys.Locking
ToSic.Sys.Logging
ToSic.Sys.Memory
ToSic.Sys.OData
ToSic.Sys.Run.Startup
ToSic.Sys.Security
ToSic.Sys.Services
ToSic.Sys.Users
ToSic.Sys.Utils
ToSic.Sys.Wrappers

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.