<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.3" />

Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCacheKey

Type of service being cached

public int Slot { get; }

Reverse index of the service when resolved in IEnumerable<Type> where default instance gets slot 0. For example for service collection IService Impl1 IService Impl2 IService Impl3 We would get the following cache keys: Impl1 2 Impl2 1 Impl3 0

public ServiceCacheKey(object key, Type type, int slot)

public ServiceCacheKey(ServiceIdentifier type, int slot)

public bool Equals(ServiceCacheKey other)

Indicates whether the current instance is equal to another instance of the same type.