19 void AddService(
Type serviceType,
object serviceInstance,
bool promote);
delegate object ServiceCreatorCallback(IServiceContainer container, Type serviceType)
Provides a callback mechanism that can create an instance of a service on demand.
Provides a container for services.
Represents type declarations: class types, interface types, array types, value types,...
void RemoveService(Type serviceType)
Removes the specified service type from the service container.
Defines a mechanism for retrieving a service object; that is, an object that provides custom support ...
void AddService(Type serviceType, object serviceInstance)
Adds the specified service to the service container.