Registers a service and returns its descriptor.
Namespace:
Gallio.Runtime.ExtensibilityAssembly: 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
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if serviceRegistration is null. |
| System..::.ArgumentException | Thrown if there is already a service registered with the same id or type name or if the plugin does not belong to this registry. |
