Registers a service and returns its descriptor.

Namespace:  Gallio.Runtime.Extensibility
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public IServiceDescriptor RegisterService(
	ServiceRegistration serviceRegistration
)
Visual Basic (Declaration)
Public Function RegisterService ( _
	serviceRegistration As ServiceRegistration _
) As IServiceDescriptor

Parameters

serviceRegistration
Type: Gallio.Runtime.Extensibility..::.ServiceRegistration
The service registration.

Return Value

The new service descriptor.

Implements

IRegistry..::.RegisterService(ServiceRegistration)

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if serviceRegistration is null.
System..::.ArgumentExceptionThrown if there is already a service registered with the same id or type name or if the plugin does not belong to this registry.

See Also