Class ADOBugFiler
Azure DevOps implementation of a bug filer.
Assembly: CrashCABN.BugFiler.AzureDevOps.dll
Syntax
public sealed record ADOBugFiler : ExtendedBugFilerBase<ADOBugFiler, WorkItem>, IBugFiler<WorkItem, WorkItem>, IEquatable<BugFilerBase<ADOBugFiler, WorkItem>>, IBugFilerExtended, IBugFiler, IBugSearch, IEquatable<ExtendedBugFilerBase<ADOBugFiler, WorkItem>>, IDisposable, IEquatable<ADOBugFiler>
Constructors
View Source
ADOBugFiler(BugRepositoryDetails, ADOConnection, ILogger<ADOBugFiler>)
Azure DevOps implementation of a bug filer.
Declaration
public ADOBugFiler(BugRepositoryDetails BugRepository, ADOConnection ADOConnection, ILogger<ADOBugFiler> Logger)
Parameters
Fields
View Source
MaxSingleLineTextLength
Declaration
public const int MaxSingleLineTextLength = 255
Field Value
Properties
View Source
ADOConnection
Declaration
public ADOConnection ADOConnection { get; init; }
Property Value
View Source
DescriptionField
Declaration
protected override string DescriptionField { get; }
Property Value
Overrides
CrashCABN.BugFiler.ExtendedBugFilerBase<CrashCABN.BugFiler.ADOBugFiler, Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem>.DescriptionField
Methods
View Source
Create a BugItemType instance in the configured bug repository with the provided metadata.
Declaration
public override Task<(WorkItem Bug, int Id)> CreateBugAsync(IImmutableDictionary<string, MetadataItem> metadata, IEnumerable<int> duplicateBugIds)
Parameters
Returns
Overrides
View Source
Declaration
protected override Task<(WorkItem Item, int Id)> CreateItemAsync(AppliesToEnum crashOrBug, IImmutableDictionary<string, MetadataItem> metadata, IAttachmentContainer? attachments, WorkItem? parentBug, string? appName, string? appVersion)
Parameters
Returns
Overrides
View Source
DeleteCrashAsync(int)
Declaration
public override Task DeleteCrashAsync(int id)
Parameters
Type |
Name |
Description |
int |
id |
The crash instance ID.
|
Returns
Type |
Description |
Task |
A task representing the asynchronous operation.
|
Overrides
View Source
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
View Source
FindMatchingBugAsync(string, string, string, KeyValuePair<string, IImmutableList<string>>?, CancellationToken)
Declaration
public override Task<BugDetails> FindMatchingBugAsync(string bucket, string appName, string appVersion, KeyValuePair<string, IImmutableList<string>>? parentBugFilter, CancellationToken cancellationToken)
Parameters
Returns
Overrides
View Source
GetCrashById(int)
Declaration
protected override Task<WorkItem?> GetCrashById(int id)
Parameters
Type |
Name |
Description |
int |
id |
|
Returns
Overrides
View Source
GetFieldValue(WorkItem, string)
Declaration
protected override string? GetFieldValue(WorkItem crash, string field)
Parameters
Returns
Overrides
View Source
Gets the fields for a bug or crash.
Declaration
public override ValueTask<IEnumerable<BugFilerField>> GetFields(AppliesToEnum crashOrBug)
Parameters
Returns
Overrides
CrashCABN.BugFiler.ExtendedBugFilerBase<CrashCABN.BugFiler.ADOBugFiler, Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem>.GetFields(CrashCABN.Metadata.AppliesToEnum)
View Source
QueryMatchingCrashes(string, string, bool, bool, CancellationToken)
Declaration
protected override IAsyncEnumerable<int> QueryMatchingCrashes(string comparisonFieldName, string comparisonFieldValue, bool returnFirstMatch = false, bool enableSearchFilter = true, CancellationToken cancellationToken = default)
Parameters
Returns
Overrides
Implements