Interface IDupeCheckServiceClient
An interface to represent a client for service calls for duplicate checking.
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure
Assembly: Aruba.Infrastructure.dll
Syntax
public interface IDupeCheckServiceClient
Methods
View SourceFindNearbyBugsAsync(IBugPruner, string, string, string, CancellationToken)
Runs a query that checks for bugs nearby to the specified location.
Declaration
Task<IEnumerable<DupeCheckBugInfo>> FindNearbyBugsAsync(IBugPruner bugPruner, string areaPath, string mapFieldName, string mapName, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IBugPruner | bugPruner | The bug pruner that defines how to remove bugs from the search. |
string | areaPath | The area path that defines which category to search under. |
string | mapFieldName | The field name for the map name data on the bug database. |
string | mapName | The map that the bug resides in. |
CancellationToken | cancellationToken | The cancellation token to cancel the task. |
Returns
Type | Description |
---|---|
Task<IEnumerable<DupeCheckBugInfo>> | A list of all bugs that are nearby. |
GetBugSubmittedWithinPast5MinutesAsync()
Finds all bugs that have been submitted within the past five minutes.
Declaration
Task<IEnumerable<DupeCheckBugInfo>> GetBugSubmittedWithinPast5MinutesAsync()
Returns
Type | Description |
---|---|
Task<IEnumerable<DupeCheckBugInfo>> | Bugs that have been submitted within the past five minutes. |
RunDupeCheckQueryAsync(DuplicateCheckQueryDefinition, IDictionary<string, string>, CancellationToken)
Runs a query that was saved to a bug template for checking for duplicates.
Declaration
Task<IEnumerable<DupeCheckBugInfo>> RunDupeCheckQueryAsync(DuplicateCheckQueryDefinition queryArgs, IDictionary<string, string> fieldValues, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
DuplicateCheckQueryDefinition | queryArgs | The object that contains the arguments for the query. |
IDictionary<string, string> | fieldValues | The values of the fields to be matched. |
CancellationToken | cancellationToken | The cancellation token to cancel the task. |
Returns
Type | Description |
---|---|
Task<IEnumerable<DupeCheckBugInfo>> | A list of all bugs that were returned from the query. |
SetAttachmentInfoIfAvailableAsync(DupeCheckBugInfo, CancellationToken)
Sets the attached files for a given bug.
Declaration
Task SetAttachmentInfoIfAvailableAsync(DupeCheckBugInfo bug, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
DupeCheckBugInfo | bug | The bug to get the attachment info for. This bug's attachment property will be updated. |
CancellationToken | cancellationToken | The cancellation token to cancel the task. |
Returns
Type | Description |
---|---|
Task | An awaitable task. |