Otter SDK Reference
Version:

TryGetServiceAsync<TService> Method

Returns the requested agent service interface if it is supported; otherwise returns null (Nothing in Visual Basic).

Syntax

public Task<TService> TryGetServiceAsync<TService>()

Returns

Requested agent service if it is supported; otherwise null (Nothing in Visual Basic).