Closed SimonG96 closed 5 years ago
Add a possibility to clear the _multitons
List in IocContainer
?
Add a possibility to clear the
_multitons
List inIocContainer
?
Can't only clear the complete _multitons
list, needs to clear for a given Type
, and clear all instances of the given type.
Maybe use a new method in the factory?
Maybe use a new method in the factory?
This is how it is done now.
Method has to be named ClearMultitonInstance
and has to be a generic method that expects one type:
void ClearMultitonInstance<T>();
Maybe change it later, so that the name of the function doesn't have to be exactly this name.
Testing multitons was successful, everything seems to work as expected.
Add Lifestyle
Multiton
toLifestyles
.Multiton
ResolveInternal()
to handle multitons