Edit

Share via


BuildHttpClientBase.ListWebhooksAsync Method

Definition

Overloads

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

[Preview API] Gets a list of webhooks installed in the given source code repository.

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

[Preview API] Gets a list of webhooks installed in the given source code repository.

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

[Preview API] Gets a list of webhooks installed in the given source code repository.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.RepositoryWebhook>> ListWebhooksAsync (string project, string providerName, Nullable<Guid> serviceEndpointId = null, string repository = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member ListWebhooksAsync : string * string * Nullable<Guid> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.RepositoryWebhook>>
override this.ListWebhooksAsync : string * string * Nullable<Guid> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.RepositoryWebhook>>

Parameters

project
String

Project ID or project name

providerName
String

The name of the source provider.

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.

repository
String

If specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

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

[Preview API] Gets a list of webhooks installed in the given source code repository.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.RepositoryWebhook>> ListWebhooksAsync (Guid project, string providerName, Nullable<Guid> serviceEndpointId = null, string repository = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member ListWebhooksAsync : Guid * string * Nullable<Guid> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.RepositoryWebhook>>
override this.ListWebhooksAsync : Guid * string * Nullable<Guid> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.RepositoryWebhook>>

Parameters

project
Guid

Project ID

providerName
String

The name of the source provider.

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.

repository
String

If specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to