Class HostingServices
This class is the main entrypoint for a host into the CAPI internal functions. It can be used to extend and alter the inner workings of the API.
Namespace: ABB.Robotics.Controllers.Hosting
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public class HostingServices : IServiceProvider, INotify
Properties
ServiceProvider
Gets the service provider impl.
Declaration
public static IServiceProvider ServiceProvider { get; }
Property Value
Type | Description |
---|---|
IServiceProvider |
Methods
RegisterHost(IHost)
Register the host.
Declaration
public static void RegisterHost(IHost host)
Parameters
Type | Name | Description |
---|---|---|
IHost | host | Host object. |
Explicit Interface Implementations
INotify.OperationCompleted(NotifyOperation, Boolean)
Handles all operation completed operations.
Declaration
void INotify.OperationCompleted(NotifyOperation operation, bool success)
Parameters
Type | Name | Description |
---|---|---|
NotifyOperation | operation | Operation that has completed. |
Boolean | success | True if the operation succeeded, otherwise false. |
INotify.OperationStarted(NotifyOperation)
Handles all operation started notifications, default all operations are allowed to continue.
Declaration
bool INotify.OperationStarted(NotifyOperation operation)
Parameters
Type | Name | Description |
---|---|---|
NotifyOperation | operation | Operation. |
Returns
Type | Description |
---|---|
Boolean | True to continue, otherwise false. |
IServiceProvider.GetService(Type)
Service provider implementation. This only supports services implemented as interfaces.
Declaration
object IServiceProvider.GetService(Type serviceType)
Parameters
Type | Name | Description |
---|---|---|
Type | serviceType | Service interface to request. |
Returns
Type | Description |
---|---|
Object | Service object. |