Class BugRepositoryDetails
Details about the bug storage system to use.
Inheritance
BugRepositoryDetails
Assembly: CrashCABN.BugFiler.Abstractions.dll
Syntax
public sealed record BugRepositoryDetails : IEquatable<BugRepositoryDetails>
Constructors
View Source
BugRepositoryDetails(object, string?, string?, string?, string?, string?, KeyValuePair<string, string>?, KeyValuePair<string, IImmutableList<string>>?)
Details regarding how the service should interact with a configured bug repository.
This is primarily used for configuration deserialization.
Declaration
[JsonConstructor]
public BugRepositoryDetails(object repository, string? bugItemType = null, string? crashInstanceItemType = null, string? bucketByFieldName = null, string? bucketByTemplate = null, string? crashIDFieldName = null, KeyValuePair<string, string>? searchFilter = null, KeyValuePair<string, IImmutableList<string>>? parentBugFilter = null)
Parameters
Fields
View Source
DefaultBugItemTypeText
Declaration
public const string DefaultBugItemTypeText = "Bug"
Field Value
View Source
DefaultCrashInstanceItemTypeText
Declaration
public const string DefaultCrashInstanceItemTypeText = "Crash Instance"
Field Value
Properties
View Source
BucketByFieldName
Declaration
[JsonProperty(Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public string? BucketByFieldName { get; }
Property Value
View Source
BucketByFieldOrDefault
Declaration
[JsonIgnore]
public string BucketByFieldOrDefault { get; }
Property Value
View Source
BucketByTemplate
Declaration
[JsonProperty(Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public string? BucketByTemplate { get; }
Property Value
View Source
BugItemType
Gets the item type that crash bugs should be created as.
Declaration
[JsonProperty(Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public string BugItemType { get; }
Property Value
View Source
CrashIDFieldName
Declaration
[JsonProperty(Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public string? CrashIDFieldName { get; }
Property Value
View Source
CrashIDFieldOrDefault
Declaration
[JsonIgnore]
public string? CrashIDFieldOrDefault { get; }
Property Value
View Source
CrashInstanceItemType
Gets the item type that each crash instance should be created as.
Declaration
[JsonProperty(Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public string CrashInstanceItemType { get; }
Property Value
View Source
ParentBugFilter
Declaration
[JsonProperty(Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public KeyValuePair<string, IImmutableList<string>> ParentBugFilter { get; }
Property Value
View Source
Repository
Declaration
[JsonProperty(Required = Required.Always)]
[JsonConverter(typeof(BugRepositoryConverter))]
public object Repository { get; }
Property Value
View Source
SearchFilter
Declaration
[JsonProperty(Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public KeyValuePair<string, string> SearchFilter { get; }
Property Value
Methods
View Source
Equals(BugRepositoryDetails?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(BugRepositoryDetails? other)
Parameters
Returns
Type |
Description |
bool |
true if the current object is equal to the other parameter; otherwise, false.
|
View Source
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A hash code for the current object.
|
Overrides
View Source
Declaration
public string GetItemTypeName(AppliesToEnum crashOrBug)
Parameters
Returns
View Source
ShouldSerializeBucketByFieldName()
Declaration
public bool ShouldSerializeBucketByFieldName()
Returns
View Source
ShouldSerializeCrashIDFieldName()
Declaration
public bool ShouldSerializeCrashIDFieldName()
Returns
Implements