mscorlib(4.0.0.0) API with additions
IServiceContainer.cs
2 
4 {
6  [ComVisible(true)]
8  {
12  void AddService(Type serviceType, object serviceInstance);
13 
19  void AddService(Type serviceType, object serviceInstance, bool promote);
20 
24  void AddService(Type serviceType, ServiceCreatorCallback callback);
25 
31  void AddService(Type serviceType, ServiceCreatorCallback callback, bool promote);
32 
35  void RemoveService(Type serviceType);
36 
41  void RemoveService(Type serviceType, bool promote);
42  }
43 }
Definition: __Canon.cs:3
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,...
Definition: Type.cs:18
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.