ContainerCollectionRegistratorAppendTService, TImplementation Method

Simple Injector
Appends a new registration of TImplementation to existing registrations made for a collection of TService elements using one of the Container.Collections.Register overloads.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 4.4.0
Syntax

public void Append<TService, TImplementation>()
where TService : class
where TImplementation : class, TService

Type Parameters

TService
The element type of the collections to register.
TImplementation
The concrete type that will be appended as registration to the collection.
Exceptions

ExceptionCondition
ArgumentExceptionThrown when the TServiceis ambiguous.
See Also

Reference