ContainerCollectionRegistratorAppendTService, TImplementation Method

Simple Injector
Appends a new registration of TImplementation to a collection of registrations for the given TService. Calls to Append can both preceed and follow a call to one of the Container.Collections.Register overloads.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.3.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