Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Type extension

ServiceProviderExtensions

extension ServiceProviderExtensions for ServiceProvider

Module: Neo.DependencyInjection
Assembly: Neo.DependencyInjection.Abstractions.dll

Typed lookups preserving missing-service and activation-error distinctions.

Receiver

ServiceProvider

Methods

6 items
Extension member: GetKeyedService<T>(key: object?) -> Result<Optional<T>, ServiceError> Typed optional lookup for an exact key; null selects unkeyed registrations. Extension from ServiceProviderExtensions.GetKeyedService
Extension member: GetKeyedServices<T>(key: object?) -> Result<Sequence<T>, ServiceError> Typed ordered lookup for an exact key without copying the result elements. Extension from ServiceProviderExtensions.GetKeyedServices
Extension member: GetRequiredKeyedService<T>(key: object?) -> Result<T, ServiceError> Typed required lookup for an exact key. Extension from ServiceProviderExtensions.GetRequiredKeyedService
Extension member: GetRequiredService<T>() -> Result<T, ServiceError> Typed form of GetRequiredService; preserves activation errors and lifetime behavior. Extension from ServiceProviderExtensions.GetRequiredService
Extension member: GetService<T>() -> Result<Optional<T>, ServiceError> Typed form of GetService; preserves activation errors and lifetime behavior. Extension from ServiceProviderExtensions.GetService
Extension member: GetServices<T>() -> Result<Sequence<T>, ServiceError> Typed form of GetServices; preserves activation errors and lifetime behavior. Extension from ServiceProviderExtensions.GetServices