Export (0) Print
Expand All

ServicesContainer.ReplaceSingle Method

Replaces a single-instance service of a specified type.

Namespace:  System.Web.Http.Controllers
Assembly:  System.Web.Http (in System.Web.Http.dll)

protected abstract void ReplaceSingle(
	Type serviceType,
	Object service
)

Parameters

serviceType
Type: System.Type

The service type.

service
Type: System.Object

The service instance.

Show:
© 2014 Microsoft