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

API Browser

Method

GetRequiredKeyedService

abstract virtual func GetRequiredKeyedService(type: TypeInfo, key: object?) -> Result<object, ServiceError>

Declaring type: ServiceProvider
Module: Neo.DependencyInjection
Assembly: Neo.DependencyInjection.Abstractions.dll
Source file: Services.rvn

Defined by ServiceProvider.GetRequiredKeyedService · Required implementation (no default).

Interface implementation: Required implementation (no default).

Resolves the last registration for an exact type and key; null selects unkeyed services.

Parameters

Name Type Description
type TypeInfo
key Object?

Return value

Result<Object, ServiceError>