BuildMaster SDK Reference
Version:

CreateProviderFromId<TProviderBase>(int providerId, Inedo.BuildMaster.Extensibility.Agents.BuildMasterAgent agent, bool disposeAgent) Method

Creates a provider from its ID.

Syntax

public static TProviderBase CreateProviderFromId<TProviderBase>(int providerId, Inedo.BuildMaster.Extensibility.Agents.BuildMasterAgent agent, bool disposeAgent)

Parameters

providerId
Type: int

The provider ID.

agent
Type: Inedo.BuildMaster.Extensibility.Agents.BuildMasterAgent

The agent which the provider will use.

disposeAgent
Type: bool

Value indicating whether the provider should dispose of the agent when the provider is disposed.

Returns

Provider created from the specified ID.