Class ADOBugFiler
Azure DevOps implementation of a bug filer.
Inherited Members
Namespace: CrashCABN.BugFiler
Assembly: CrashCABN.BugFiler.AzureDevOps.dll
Syntax
public class ADOBugFiler : BugFilerBase<WorkItem, WorkItem>, IBugFiler<WorkItem, WorkItem>, IDisposable
Constructors
View SourceADOBugFiler(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 SourceMaxSingleLineTextLength
Declaration
public const int MaxSingleLineTextLength = 255
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
View SourceCreateBugAsync(IImmutableDictionary<String, MetadataItem>)
Create a
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. |
CreateCrashInstanceAsync(IImmutableDictionary<String, MetadataItem>, Nullable<IAttachmentContainer>)
Create a
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. |
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing |
FindMatchingBugAsync(IImmutableDictionary<String, MetadataItem>)
Finds a
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. |
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
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. |