Show / Hide Table of Contents

Class ADOBugFiler

Azure DevOps implementation of a bug filer.

Inheritance
System.Object
BugFilerBase<WorkItem, WorkItem>
ADOBugFiler
Implements
IBugFiler<WorkItem, WorkItem>
System.IDisposable
Inherited Members
BugFilerBase<WorkItem, WorkItem>.Logger
BugFilerBase<WorkItem, WorkItem>.BugRepository
BugFilerBase<WorkItem, WorkItem>.CreateBugAsync(IImmutableDictionary<String, MetadataItem>)
BugFilerBase<WorkItem, WorkItem>.CreateCrashInstanceAsync(IImmutableDictionary<String, MetadataItem>, Nullable<IAttachmentContainer>)
BugFilerBase<WorkItem, WorkItem>.FindMatchingBugAsync(String, String)
BugFilerBase<WorkItem, WorkItem>.FindMatchingBugAsync(IImmutableDictionary<String, MetadataItem>)
BugFilerBase<WorkItem, WorkItem>.LinkCrashToBugAsync(WorkItem, WorkItem, IImmutableDictionary<String, MetadataItem>)
BugFilerBase<WorkItem, WorkItem>.LinkCrashToBugAsync(Object, Object, IImmutableDictionary<String, MetadataItem>)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CrashCABN.BugFiler
Assembly: CrashCABN.BugFiler.AzureDevOps.dll
Syntax
public class ADOBugFiler : BugFilerBase<WorkItem, WorkItem>, IBugFiler<WorkItem, WorkItem>, IDisposable

Constructors

View Source

ADOBugFiler(BugRepositoryDetails, VssConnection, WorkItemTrackingHttpClient, ILogger<ADOBugFiler>)

Initializes a new instance of the ADOBugFiler class.

Declaration
public ADOBugFiler(BugRepositoryDetails bugRepository, VssConnection adoConnection, WorkItemTrackingHttpClient witClient, ILogger<ADOBugFiler> logger)
Parameters
Type Name Description
BugRepositoryDetails bugRepository

The bug repository information.

VssConnection adoConnection
WorkItemTrackingHttpClient witClient
ILogger<ADOBugFiler> logger

Fields

View Source

MaxSingleLineTextLength

Declaration
public const int MaxSingleLineTextLength = 255
Field Value
Type Description
System.Int32

Methods

View Source

CreateBugAsync(IImmutableDictionary<String, MetadataItem>)

Create a work item in the configured bug repository with the provided metadata.

Declaration
public override async Task<(WorkItem Bug, int Id)> CreateBugAsync(IImmutableDictionary<string, MetadataItem> metadata)
Parameters
Type Name Description
System.Collections.Immutable.IImmutableDictionary<System.String, MetadataItem> metadata

Metadata collection to use for field data.

Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<WorkItem, System.Int32>>

The work item created and its ID.

View Source

CreateCrashInstanceAsync(IImmutableDictionary<String, MetadataItem>, Nullable<IAttachmentContainer>)

Create a work item in the configured bug repository with the provided metadata.

Declaration
public override async Task<(WorkItem Crash, int Id)> CreateCrashInstanceAsync(IImmutableDictionary<string, MetadataItem> metadata, IAttachmentContainer? attachments)
Parameters
Type Name Description
System.Collections.Immutable.IImmutableDictionary<System.String, MetadataItem> metadata

Metadata collection to use for field data.

System.Nullable<IAttachmentContainer> attachments

Attachments to include.

Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<WorkItem, System.Int32>>

The work item created and its ID.

View Source

Dispose()

Declaration
public void Dispose()
View Source

Dispose(Boolean)

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing
View Source

FindMatchingBugAsync(IImmutableDictionary<String, MetadataItem>)

Finds a work item that matches the failure bucket ID of the provided crash work item.

Declaration
public override async Task<(object Bug, int Id, bool HasMatchingCrash)?> FindMatchingBugAsync(IImmutableDictionary<string, MetadataItem> metadata)
Parameters
Type Name Description
System.Collections.Immutable.IImmutableDictionary<System.String, MetadataItem> metadata
Returns
Type Description
System.Threading.Tasks.Task<System.Nullable<System.ValueTuple<System.Object, System.Int32, System.Boolean>>>

The matching work item and its ID if found, otherwise null. Also whether or not the work item already has a matching crash.

View Source

FindMatchingBugAsync(String, String)

Declaration
public override async Task<(object Bug, int CrashCountForVersion)?> FindMatchingBugAsync(string title, string version)
Parameters
Type Name Description
System.String title
System.String version
Returns
Type Description
System.Threading.Tasks.Task<System.Nullable<System.ValueTuple<System.Object, System.Int32>>>
Overrides
CrashCABN.BugFiler.BugFilerBase<WorkItem, WorkItem>.FindMatchingBugAsync(System.String, System.String)
View Source

LinkCrashToBugAsync(WorkItem, WorkItem, IImmutableDictionary<String, MetadataItem>)

Links the crash work item as a child of the bug work item. If the bug has too many children, the oldest one is unlinked before linking the new one.

Declaration
public override async Task LinkCrashToBugAsync(WorkItem crashInstance, WorkItem bugInstance, IImmutableDictionary<string, MetadataItem> metadata)
Parameters
Type Name Description
WorkItem crashInstance

The crash work item to link.

WorkItem bugInstance

The bug work item to link.

System.Collections.Immutable.IImmutableDictionary<System.String, MetadataItem> metadata

The crash metadata to use when linking.

Returns
Type Description
System.Threading.Tasks.Task

The task for this action.

Implements

IBugFiler<TBug, TCrash>
System.IDisposable
  • View Source
In This Article
Back to top Generated by DocFX