CompositeServiceContainer overloads

Topics: CAB & Smart Client Software Factory
Jul 6, 2005 at 8:38 AM
originally posted by: FrancoisTanguay

Those could be useful:

- AddService<T>(...)

- ReplaceService(Type serviceType, object serviceInstance) --> Asserts that is already contained, removes and then adds new instance

- AddOrReplaceService(Type serviceType, object serviceInstance) --> No assert
Jul 8, 2005 at 11:03 AM
originally posted by: BradWilsonMSFT

The first one I get, but I'm not sure I understand the motivation behind the other two. Can you explain?