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