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

API Browser

Method

GetRequiredService

abstract virtual func GetRequiredService(type: TypeInfo) -> Result<object, ServiceError>

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

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

Interface implementation: Required implementation (no default).

Resolves the last registration, or returns Missing; activation errors propagate.

Parameters

Name Type Description
type TypeInfo

Return value

Result<Object, ServiceError>