Agent Class

The base class for all agents.

Inheritance Hierarchy

Syntax

public class Agent : System.IDisposable

Constructors

Name Description
Agent

Initializes a new instance of the Agent class.

Events

Name Description
ServiceRequested

Occurs when a service is successfully requested.

Methods

Name Description
Dispose

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(bool disposing)
GetAgentServiceInternal(System.Type service)
GetAgentServiceInternalAsync(System.Type service)
GetDescription

Returns a human-friendly description of the agent's configuration.

GetService<TService>

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

GetServiceAsync<TService>

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

OnServiceRequested(ServiceRequestedEventArgs e)

Raises the ServiceRequested event.

TryGetService<TService>

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

TryGetServiceAsync<TService>

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