Language

ResourceStore Class

Definition

Provides a default implementation of a resource store.

public sealed class ResourceStore : Microsoft.TeamFoundation.DistributedTask.Pipelines.IResourceStore
type ResourceStore = class
    interface IResourceStore
    interface IStepProvider
Public NotInheritable Class ResourceStore
Implements IResourceStore
Inheritance
ResourceStore
Implements

Constructors

Name Description
ResourceStore()

Initializes a new ResourceStore instance with no resources.

ResourceStore(IList<ServiceEndpoint>, IList<SecureFile>, IList<TaskAgentQueue>, IDictionary<String,Guid>, IDictionary<String,Guid>, IDictionary<String, Int32>)

Initializes a new ResourceStore instance with the specified resources. If aliases are provided, an alias overrides lookup by name for the specified resource.

ResourceStore(IList<ServiceEndpoint>, IList<SecureFile>, IList<TaskAgentQueue>, IList<VariableGroup>, IList<BuildResource>, IList<ContainerResource>, IList<RepositoryResource>)

Initializes a new ResourceStore instance with the specified resources. If aliases are provided, an alias overrides lookup by name for the specified resource.

ResourceStore(IServiceEndpointStore, ISecureFileStore, IAgentQueueStore, IVariableGroupStore, IBuildStore, IContainerStore, IRepositoryStore)

Initializes a new ResourceStore instance with the specified resources and endpoint store. If aliases are provided, an alias overrides lookup by name for the specified resource.

Properties

Name Description
Builds

Gets the store used for retrieving build resources.

Containers

Gets the store used for retrieving container resources.

Endpoints

Gets the store used for retrieving service endpoints.

Files

Gets the store used for retrieving secure files.

Queues

Gets the store used for retrieving agent queues.

Repositories

Gets the store used for retrieving repository resources.

VariableGroups

Gets the store used for retrieving variable groups.

Methods

Name Description
GetAuthorizedResources()

Gets all resources currently in the resource store.

GetEndpoint(Guid)
GetEndpoint(String)
GetFile(Guid)
GetFile(String)
GetPostSteps(IPipelineContext, IReadOnlyList<JobStep>)

Get steps that are run after all other steps.

GetPreSteps(IPipelineContext, IReadOnlyList<JobStep>)

Gets the steps, if any, which should be inserted into the job based on the resources configured.

GetQueue(Int32)
GetQueue(String)
GetVariableGroup(Int32)
GetVariableGroup(String)

Extension Methods

Name Description
GetEndpoint(IResourceStore, ServiceEndpointReference)

Retrieves a service endpoint from the store using the provided reference.

GetFile(IResourceStore, SecureFileReference)

Retrieves a secure file from the store using the provided reference.

GetJobResources(IResourceStore, PipelineResources)

Extracts the full resources from the store which are referenced in the resources collection.

GetQueue(IResourceStore, AgentQueueReference)

Retrieves an agent queue from the store using the provided reference.

GetVariableGroup(IResourceStore, VariableGroupReference)

Retrieves a variable group from the store using the provided reference.

Applies to