Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 1.04 KB

File metadata and controls

21 lines (15 loc) · 1.04 KB

Modules

Modules in Space are system-level pipelines that perform predefined operations, such as caching or auditing. Modules are added via attributes to handler methods and require registration through extension methods.

Multi-Project Note: Module-decorated handlers in satellite libraries are picked up automatically when a single root project sets <SpaceGenerateRootAggregator>true</SpaceGenerateRootAggregator>. See MultiProjectSetup.md.

Built-in Modules

  • In-Memory Cache: Add [Cache(Duration = 60)] to a handler and register with services.AddSpaceInMemoryCache().
  • Audit: Add [Audit] to a handler and register with services.AddSpaceAudit().

Custom Modules

You can implement your own modules by following the interface and configuration standards. See the Space.Modules.InMemoryCache for reference.

Example: InMemory Cache

services.AddSpaceInMemoryCache();

Notes

  • Modules must be registered via their extension methods.
  • Custom modules should follow the required interfaces and provide a config model.