Interface
ServiceProvider
interface ServiceProvider
Module: Neo.DependencyInjection
Assembly: Neo.DependencyInjection.Abstractions.dll
Source file: Services.rvn
Inherits: Disposable
Resolves services within one invocation. Dispose scopes explicitly to release owned services. Resolution is synchronous and follows the runtime's serialized guest execution model.
Methods
8 items
CreateScope() -> Result<ServiceProvider, ServiceError>
Creates an independently disposable scope sharing the root singleton cache.
Defined by ServiceProvider.CreateScope · Required implementation (no default).
Dispose() -> ()
Releases the resources governed by this implementation.
Inherited from Disposable.Dispose · Defined by Disposable.Dispose · Required implementation (no default).
GetKeyedService(type: TypeInfo, key: object?) -> Result<Optional<object>, ServiceError>
Returns None only if this exact type/key is unregistered.
Defined by ServiceProvider.GetKeyedService · Required implementation (no default).
GetKeyedServices(type: TypeInfo, key: object?) -> Result<Sequence<object>, ServiceError>
Resolves registrations for this exact type/key in registration order.
Defined by ServiceProvider.GetKeyedServices · Required implementation (no default).
GetRequiredKeyedService(type: TypeInfo, key: object?) -> Result<object, ServiceError>
Resolves the last registration for an exact type and key; null selects unkeyed services.
Defined by ServiceProvider.GetRequiredKeyedService · Required implementation (no default).
GetRequiredService(type: TypeInfo) -> Result<object, ServiceError>
Resolves the last registration, or returns Missing; activation errors propagate.
Defined by ServiceProvider.GetRequiredService · Required implementation (no default).
GetService(type: TypeInfo) -> Result<Optional<object>, ServiceError>
Returns None only when unregistered; registered factory or activation failures remain errors.
Defined by ServiceProvider.GetService · Required implementation (no default).
GetServices(type: TypeInfo) -> Result<Sequence<object>, ServiceError>
Resolves every explicit registration in registration order; an absent type yields an empty sequence.
Defined by ServiceProvider.GetServices · Required implementation (no default).