BuildMaster SDK Reference
Version:

GetServiceAsync<TService> Method

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

Syntax

public Task<TService> GetServiceAsync<TService>()

Returns

Requested agent service.

Exceptions

System.NotSupportedException

The requested interface is not supported.