AddService Method
AddService(Type, Object)
Adds a new service to the container.
Declaration
public void AddService(Type serviceInterface, object serviceInstance)
Parameters
Type | Name | Description |
---|---|---|
System.Type | serviceInterface | The type of the service interface to use as a key for the service. |
System.Object | serviceInstance | The service instance implementing that interface. |