API Reference¶
This section provides detailed documentation for the public API of the WD-DI library.
Core Components¶
- ServiceCollection: For registering services.
- ServiceProvider & Scope: For resolving services and managing scopes.
- ServiceLifetime: Defines service lifetime options.
- create_service_collection(): Helper to create a
ServiceCollection
.
Middleware¶
- Middleware Components: Describes
IMiddleware
,MiddlewarePipeline
, and built-in middleware. - Middleware DI Integration: Covers
ApplicationBuilder
andMiddlewareBuilder
for setting up middleware pipelines with DI.
Configuration¶
- Configuration System: Details
IConfiguration
,ConfigurationBuilder
, andOptions
.
Other¶
- Descriptors: Service descriptor definitions.
- Exceptions: Custom exceptions.