Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.15.0" />

 ServiceRegistration

public class ServiceRegistration
Represents a service registration.
public readonly bool IsDecorator

True if the registration is a decorator.

public readonly int RegistrationId

The registration id.

public Type ImplementationType { get; }

The implementation type.

public LifetimeDescriptor Lifetime { get; }

Lifetime of the registration.

public object Name { get; }

Name of the registration.

Advanced registration options.

public int RegistrationOrder { get; }

The registration order indicator.

public int GetDiscriminator(TypeInformation typeInformation, ContainerConfiguration containerConfiguration)

Returns the service discriminator used to distinguish service instances. If UniversalName used for service name it returns the requested dependency name's hash. Otherwise, the service's registration identifier is used.