Method
AddKeyedInstance
func AddKeyedInstance(service: TypeInfo, key: object?, instance: object) -> Result<void, ServiceError>
Declaring type: DefaultServiceCollection
Module: Neo.DependencyInjection
Assembly: Neo.DependencyInjection.dll
Source file: Services.rvn
Implements ServiceCollection.AddKeyedInstance
Registers a caller-owned keyed instance.
Parameters
| Name | Type | Description |
|---|---|---|
service |
TypeInfo | |
key |
Object? | |
instance |
Object |
Return value
Result<void, ServiceError>