Method
GetRequiredKeyedService
func GetRequiredKeyedService<T>(key: object?) -> Result<T, ServiceError>
Declaring type: ServiceProviderExtensions
Module: Neo.DependencyInjection
Assembly: Neo.DependencyInjection.Abstractions.dll
Extension from ServiceProviderExtensions.GetRequiredKeyedService
Typed required lookup for an exact key.
Parameters
| Name | Type | Description |
|---|---|---|
self |
ServiceProvider | |
key |
Object? |
Return value
Result<T, ServiceError>