Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="4.0.0-preview-664" />

 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.