TUtility
On this page
TUtility supplies common .NET infrastructure: caches, object pools, async coordination, scheduling, bytes, JSON, identifiers, logging and modular startup. TORM and TExcel use its core layer; TAdmin uses the application hosting layer.
Start with the smallest dependency
For caching, async coordination, checksums or JSON, install Core in your existing .NET project:
dotnet add package TUtility.CoreCache and CRC example · API reference
Choose a package
| Package | Scope |
|---|---|
TUtility.Core | Caches, pools, queues, async primitives, TimerX, CRC, conversion, JSON and IDs |
TUtility | Core plus OperResult, TouchSocket logging and buffer integration |
TUtility.App | TUtility plus Microsoft DI, configuration, log bridging and AppStartup |
TUtility.Generator | Compile-time AppStartupRunner generation |
TUtility.Analyzer | Compiler diagnostics; see current rules |
Examples use .NET 10.
Namespaces
Most types use TUtility. Caches use TUtility.Caching; conversion extensions use TUtility.Extension; bit operations use TUtility.BitExtension; JSON uses TUtility.Json.Extension; logging uses TUtility.Log.
Reading path
| Task | Guide |
|---|---|
| Return operation status or query pages | Results and paging |
| Summarize import validation | Import preview |
| Cache, pool objects or queue work | Caches, pools and queues |
| Limit concurrency or await signals | Async coordination |
| Schedule periodic or Cron work | TimerX and scheduling |
| Process bytes, checksums and identifiers | Bytes and checksums |
| Serialize and configure AOT metadata | JSON |
| Build a modular host | Startup |
| Configure log output | Logging |
| Configure compiler diagnostics and startup generation | Analyzers and generators |