Edit

Share via


BuildHttpClientBase.GetPullRequestAsync Method

Definition

Overloads

GetPullRequestAsync(Guid, String, String, String, Nullable<Guid>, Object, CancellationToken)

[Preview API] Gets a pull request object from source provider.

GetPullRequestAsync(String, String, String, String, Nullable<Guid>, Object, CancellationToken)

[Preview API] Gets a pull request object from source provider.

GetPullRequestAsync(Guid, String, String, String, Nullable<Guid>, Object, CancellationToken)

[Preview API] Gets a pull request object from source provider.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.PullRequest> GetPullRequestAsync (Guid project, string providerName, string pullRequestId, string repositoryId = null, Nullable<Guid> serviceEndpointId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestAsync : Guid * string * string * string * Nullable<Guid> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.PullRequest>
override this.GetPullRequestAsync : Guid * string * string * string * Nullable<Guid> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.PullRequest>

Parameters

project
Guid

Project ID

providerName
String

The name of the source provider.

pullRequestId
String

Vendor-specific id of the pull request.

repositoryId
String

Vendor-specific identifier or the name of the repository that contains the pull request.

serviceEndpointId
Nullable<Guid>

If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetPullRequestAsync(String, String, String, String, Nullable<Guid>, Object, CancellationToken)

[Preview API] Gets a pull request object from source provider.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.PullRequest> GetPullRequestAsync (string project, string providerName, string pullRequestId, string repositoryId = null, Nullable<Guid> serviceEndpointId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetPullRequestAsync : string * string * string * string * Nullable<Guid> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.PullRequest>
override this.GetPullRequestAsync : string * string * string * string * Nullable<Guid> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.PullRequest>

Parameters

project
String

Project ID or project name

providerName
String

The name of the source provider.

pullRequestId
String

Vendor-specific id of the pull request.

repositoryId
String

Vendor-specific identifier or the name of the repository that contains the pull request.

serviceEndpointId
Nullable<Guid>

If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to