BuildMaster SDK Reference
Version:

BuildMasterAgent Class

The base class for all agents.

Inheritance Hierarchy

  • object
    • Inedo.BuildMaster.Extensibility.Agents.BuildMasterAgent

Syntax

public class BuildMasterAgent : System.IDisposable

Events

Name Description
ServiceRequested

Occurs when a service is successfully requested

Methods

Name Description
Create(string serverName)

Creates an agent from the specified server name

Create(int serverId)

Creates an agent from the specified serverId

Create(Inedo.BuildMaster.Data.Tables.Servers serverInfo)
CreateLocalAgent

Creates a local agent.

Dispose

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

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).