Table of Contents

Method GetService

Namespace
Skyline.DataMiner.Core.DataMinerSystem.Common
Assembly
Skyline.DataMiner.Core.DataMinerSystem.Common.dll

GetService(DmsServiceId)

Retrieves the service with the specified service ID.

IDmsService GetService(DmsServiceId dmsServiceId)

Parameters

dmsServiceId DmsServiceId

The DataMiner Agent ID/service ID of the service.

Returns

IDmsService

The service with the specified ID.

Exceptions

ArgumentException

dmsServiceId is empty.

ServiceNotFoundException

No service with the specified ID exists in the DataMiner System.

GetService(string)

Retrieves the service with the specified service name.

IDmsService GetService(string serviceName)

Parameters

serviceName string

The name of the service.

Returns

IDmsService

The service with the specified name.

Exceptions

ArgumentNullException

serviceName is null.

ArgumentException

serviceName is the empty string ("") or white space.

ServiceNotFoundException

No service with the specified name exists in the DataMiner system.