Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.6.3-preview-638" />

 ServiceAlreadyRegisteredException

Represents the exception the container throws when a registration process fails due to service duplication. Occurs when the container is configured with ThrowException.
public Type Type { get; }

The type the container is trying to register.

public ServiceAlreadyRegisteredException(Type type, Exception innerException = null)

Constructs a ServiceAlreadyRegisteredException.