Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.5.1-preview-626" />

 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.