<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.0-rc.1.25451.107" />

FromKeyedServicesAttribute

Indicates that the parameter should be bound using the keyed service registered with the specified key.
public object Key { get; }

The key of the keyed service to bind to.

Gets the mode used to look up the service key.

public FromKeyedServicesAttribute(object key)

Creates a new FromKeyedServicesAttribute instance.

Creates a new FromKeyedServicesAttribute instance with LookupMode set to InheritKey.