Click or drag to resize

AltaxoServiceContainerAddService(Type, Object, Boolean) Method

Adds the specified service to the service container, and optionally promotes the service to any parent service containers.

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public void AddService(
	Type serviceType,
	Object serviceInstance,
	bool promote
)

Parameters

serviceType  Type
The type of service to add.
serviceInstance  Object
An instance of the service type to add. This object must implement or inherit from the type indicated by the serviceType parameter.
promote  Boolean
to promote this request to any parent service containers; otherwise, .

Implements

IServiceContainerAddService(Type, Object, Boolean)
See Also