Class AdditionalFileInfo
Represents information about additional files to parse into metadata or attach to work items.
Implements
Inherited Members
Namespace: CrashCABN.Metadata
Assembly: CrashCABN.Metadata.Abstractions.dll
Syntax
public sealed record AdditionalFileInfo : IEquatable<AdditionalFileInfo>
Constructors
View SourceAdditionalFileInfo(string, bool, bool, bool, bool, bool)
Initializes a new instance of the AdditionalFileInfo class.
Declaration
public AdditionalFileInfo(string fileName, bool isDevFlagFile = false, bool attachForRetailCrashes = false, bool attachForDevCrashes = true, bool parseForRetailCrashes = false, bool parseForDevCrashes = true)
Parameters
Type | Name | Description |
---|---|---|
string | fileName | The file name. |
bool | isDevFlagFile | Whether the file's presence indicates that the crash is from a dev environment. |
bool | attachForRetailCrashes | Whether the file should be attached to retail crashes. False by default. |
bool | attachForDevCrashes | Whether the file should be attached to dev crashes. True by default. |
bool | parseForRetailCrashes | Whether the file should be extracted for use during metadata parsing of retail crashes.
False by default, or always true if |
bool | parseForDevCrashes | Whether the file should be extracted for use during metadata parsing of dev crashes. True by default. |
Properties
View SourceAttachForDevCrashes
Gets a value indicating whether this file should be attached to the work item for dev crashes.
Declaration
[JsonProperty(DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public bool AttachForDevCrashes { get; }
Property Value
Type | Description |
---|---|
bool |
AttachForRetailCrashes
Gets a value indicating whether this file should be attached to the work item for retail crashes.
Declaration
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
public bool AttachForRetailCrashes { get; }
Property Value
Type | Description |
---|---|
bool |
FileName
Gets the name of the file.
Declaration
public string FileName { get; }
Property Value
Type | Description |
---|---|
string |
IsDevFlagFile
Gets a value indicating whether this file's presence indicates that the crash is from a dev environment.
Declaration
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
public bool IsDevFlagFile { get; }
Property Value
Type | Description |
---|---|
bool |
ParseForDevCrashes
Gets a value indicating whether this file should be extracted for use during metadata parsing of dev crashes.
Declaration
[JsonProperty(DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public bool ParseForDevCrashes { get; }
Property Value
Type | Description |
---|---|
bool |
ParseForRetailCrashes
Gets a value indicating whether this file should be extracted for use during metadata parsing of retail crashes.
Declaration
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
public bool ParseForRetailCrashes { get; }
Property Value
Type | Description |
---|---|
bool |