Show / Hide Table of Contents

Class ADOBugFiler

Azure DevOps implementation of a bug filer.

Inheritance
object
BugFilerBase<ADOBugFiler, WorkItem>
ExtendedBugFilerBase<ADOBugFiler, WorkItem>
ADOBugFiler
Implements
IBugFiler<WorkItem, WorkItem>
IEquatable<BugFilerBase<ADOBugFiler, WorkItem>>
IBugFilerExtended
IBugFiler
IBugSearch
IEquatable<ExtendedBugFilerBase<ADOBugFiler, WorkItem>>
IDisposable
IEquatable<ADOBugFiler>
Inherited Members
ExtendedBugFilerBase<ADOBugFiler, WorkItem>.GetFields(AppliesToEnum)
ExtendedBugFilerBase<ADOBugFiler, WorkItem>.GetApportionedHitsAsync(int)
BugFilerBase<ADOBugFiler, WorkItem>.BugRepository
BugFilerBase<ADOBugFiler, WorkItem>.Logger
BugFilerBase<ADOBugFiler, WorkItem>.CreateBugAsync(IImmutableDictionary<string, MetadataItem>, IEnumerable<int>)
BugFilerBase<ADOBugFiler, WorkItem>.CreateCrashInstanceAsync(WorkItem, IImmutableDictionary<string, MetadataItem>, IAttachmentContainer, string, string)
BugFilerBase<ADOBugFiler, WorkItem>.FindMatchingBugAsync(string, string, string, CancellationToken)
BugFilerBase<ADOBugFiler, WorkItem>.FindMatchingBugAsync(string, string, string, KeyValuePair<string, IImmutableList<string>>?, CancellationToken)
BugFilerBase<ADOBugFiler, WorkItem>.FindMatchingBugAsync(string, string, IImmutableDictionary<string, MetadataItem>, KeyValuePair<string, IImmutableList<string>>)
BugFilerBase<ADOBugFiler, WorkItem>.FindMatchingCrashAsync(string, CancellationToken)
BugFilerBase<ADOBugFiler, WorkItem>.FindMatchingCrashesAsync(string, CancellationToken)
BugFilerBase<ADOBugFiler, WorkItem>.DeleteCrashAsync(int)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: CrashCABN.BugFiler
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
Type Name Description
BugRepositoryDetails BugRepository
ADOConnection ADOConnection
ILogger<ADOBugFiler> Logger

Fields

View Source

MaxSingleLineTextLength

Declaration
public const int MaxSingleLineTextLength = 255
Field Value
Type Description
int

Properties

View Source

ADOConnection

Declaration
public ADOConnection ADOConnection { get; init; }
Property Value
Type Description
ADOConnection
View Source

DescriptionField

Declaration
protected override string DescriptionField { get; }
Property Value
Type Description
string
Overrides
CrashCABN.BugFiler.ExtendedBugFilerBase<CrashCABN.BugFiler.ADOBugFiler, Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem>.DescriptionField

Methods

View Source

CreateBugAsync(IImmutableDictionary<string, MetadataItem>, IEnumerable<int>)

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
Type Name Description
IImmutableDictionary<string, MetadataItem> metadata

Metadata collection to use for field data.

IEnumerable<int> duplicateBugIds

An enumeration of existing, duplicate bug instance IDs.

Returns
Type Description
Task<(WorkItem Bug, int Id)>

The bug instance created and its ID.

Overrides
BugFilerBase<ADOBugFiler, WorkItem>.CreateBugAsync(IImmutableDictionary<string, MetadataItem>, IEnumerable<int>)
View Source

CreateItemAsync(AppliesToEnum, IImmutableDictionary<string, MetadataItem>, IAttachmentContainer?, WorkItem?, string?, string?)

Declaration
protected override Task<(WorkItem Item, int Id)> CreateItemAsync(AppliesToEnum crashOrBug, IImmutableDictionary<string, MetadataItem> metadata, IAttachmentContainer? attachments, WorkItem? parentBug, string? appName, string? appVersion)
Parameters
Type Name Description
AppliesToEnum crashOrBug
IImmutableDictionary<string, MetadataItem> metadata
IAttachmentContainer attachments
WorkItem parentBug
string appName
string appVersion
Returns
Type Description
Task<(WorkItem Bug, int Id)>
Overrides
BugFilerBase<ADOBugFiler, WorkItem>.CreateItemAsync(AppliesToEnum, IImmutableDictionary<string, MetadataItem>, IAttachmentContainer, WorkItem, string, string)
View Source

DeleteCrashAsync(int)

Delete a CrashInstanceItemType instance in the configured bug repository.

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
BugFilerBase<ADOBugFiler, WorkItem>.DeleteCrashAsync(int)
View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()
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
Type Name Description
string bucket
string appName
string appVersion
KeyValuePair<string, IImmutableList<string>>? parentBugFilter
CancellationToken cancellationToken
Returns
Type Description
Task<BugDetails>
Overrides
BugFilerBase<ADOBugFiler, WorkItem>.FindMatchingBugAsync(string, string, string, KeyValuePair<string, IImmutableList<string>>?, CancellationToken)
View Source

GetCrashById(int)

Declaration
protected override Task<WorkItem?> GetCrashById(int id)
Parameters
Type Name Description
int id
Returns
Type Description
Task<WorkItem>
Overrides
BugFilerBase<ADOBugFiler, WorkItem>.GetCrashById(int)
View Source

GetFieldValue(WorkItem, string)

Declaration
protected override string? GetFieldValue(WorkItem crash, string field)
Parameters
Type Name Description
WorkItem crash
string field
Returns
Type Description
string
Overrides
ExtendedBugFilerBase<ADOBugFiler, WorkItem>.GetFieldValue(WorkItem, string)
View Source

GetFields(AppliesToEnum)

Gets the fields for a bug or crash.

Declaration
public override ValueTask<IEnumerable<BugFilerField>> GetFields(AppliesToEnum crashOrBug)
Parameters
Type Name Description
AppliesToEnum crashOrBug
Returns
Type Description
ValueTask<IEnumerable<BugFilerField>>

An enumeration of fields.

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
Type Name Description
string comparisonFieldName
string comparisonFieldValue
bool returnFirstMatch
bool enableSearchFilter
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<int>
Overrides
BugFilerBase<ADOBugFiler, WorkItem>.QueryMatchingCrashes(string, string, bool, bool, CancellationToken)

Implements

IBugFiler<TBug, TCrash>
IEquatable<T>
IBugFilerExtended
IBugFiler
IBugSearch
IEquatable<T>
IDisposable
IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX