AddOrReplaceService Method
AddOrReplaceService(Type, Object)
Adds a new service to the container or Replaces a existing one.
Declaration
public void AddOrReplaceService(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. |