Expand description
Host-level DI handles: the service provider and the handler registry.
Since 1.0 rust-webx passes DI explicitly instead of relying on a task-local ambient runtime:
Mediatorholds the provider and the handler registry it was built with;IHttpContextexposes theDispatchRuntimethat dispatched the request, so endpoint adapters and middleware can open scopes (provider.scope()) explicitly;- background work injects rust-dix’s built-in
Arc<dyn ScopeFactory>and callsScopeFactory::create_scope()itself.
Host stores one DispatchRuntime per instance. There is no process-wide
or task-local fallback: rust-dix owns scope lifetime, resolution and
disposal, and rust-webx only keeps the per-host handle.
Structs§
- Dispatch
Runtime - Provider + handler registry for one host instance.