Edit

Share via


GitHttpClientBase.SharePullRequestAsync Method

Definition

Overloads

SharePullRequestAsync(ShareNotificationContext, String, String, Int32, Object, CancellationToken)

[Preview API] Sends an e-mail notification about a specific pull request to a set of recipients

SharePullRequestAsync(ShareNotificationContext, String, Guid, Int32, Object, CancellationToken)

[Preview API] Sends an e-mail notification about a specific pull request to a set of recipients

SharePullRequestAsync(ShareNotificationContext, Guid, String, Int32, Object, CancellationToken)

[Preview API] Sends an e-mail notification about a specific pull request to a set of recipients

SharePullRequestAsync(ShareNotificationContext, String, Int32, Object, CancellationToken)

[Preview API] Sends an e-mail notification about a specific pull request to a set of recipients

SharePullRequestAsync(ShareNotificationContext, Guid, Int32, Object, CancellationToken)

[Preview API] Sends an e-mail notification about a specific pull request to a set of recipients

SharePullRequestAsync(ShareNotificationContext, Guid, Guid, Int32, Object, CancellationToken)

[Preview API] Sends an e-mail notification about a specific pull request to a set of recipients

SharePullRequestAsync(ShareNotificationContext, String, String, Int32, Object, CancellationToken)

[Preview API] Sends an e-mail notification about a specific pull request to a set of recipients

public virtual System.Threading.Tasks.Task SharePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext userMessage, string project, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member SharePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SharePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

project
String

Project ID or project name

repositoryId
String

ID of the git repository.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

SharePullRequestAsync(ShareNotificationContext, String, Guid, Int32, Object, CancellationToken)

[Preview API] Sends an e-mail notification about a specific pull request to a set of recipients

public virtual System.Threading.Tasks.Task SharePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext userMessage, string project, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member SharePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SharePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

project
String

Project ID or project name

repositoryId
Guid

ID of the git repository.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

SharePullRequestAsync(ShareNotificationContext, Guid, String, Int32, Object, CancellationToken)

[Preview API] Sends an e-mail notification about a specific pull request to a set of recipients

public virtual System.Threading.Tasks.Task SharePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext userMessage, Guid project, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member SharePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext * Guid * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SharePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext * Guid * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

project
Guid

Project ID

repositoryId
String

ID of the git repository.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

SharePullRequestAsync(ShareNotificationContext, String, Int32, Object, CancellationToken)

[Preview API] Sends an e-mail notification about a specific pull request to a set of recipients

public virtual System.Threading.Tasks.Task SharePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext userMessage, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member SharePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SharePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

repositoryId
String

ID of the git repository.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

SharePullRequestAsync(ShareNotificationContext, Guid, Int32, Object, CancellationToken)

[Preview API] Sends an e-mail notification about a specific pull request to a set of recipients

public virtual System.Threading.Tasks.Task SharePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext userMessage, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member SharePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SharePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

repositoryId
Guid

ID of the git repository.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

SharePullRequestAsync(ShareNotificationContext, Guid, Guid, Int32, Object, CancellationToken)

[Preview API] Sends an e-mail notification about a specific pull request to a set of recipients

public virtual System.Threading.Tasks.Task SharePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext userMessage, Guid project, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member SharePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext * Guid * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SharePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.ShareNotificationContext * Guid * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

project
Guid

Project ID

repositoryId
Guid

ID of the git repository.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to