BuildMaster SDK Reference
Version:

GetService<TService> Method

Returns the requested agent service or throws an exception if it is not available.

Syntax

public TService GetService<TService>()

Returns

Requested agent service.

Exceptions

System.NotSupportedException

The requested interface is not supported.