Class WatsonCrashSource
Processes message from pull ingestion or Watson gateway into a crash instance.
Inheritance
WatsonCrashSource
Assembly: CrashCABN.CrashSources.Watson.dll
Syntax
public sealed record WatsonCrashSource : ICrashSource, IEquatable<WatsonCrashSource>
Constructors
View Source
WatsonCrashSource(IngestCrashMessage, ILogger<WatsonCrashSource>, IWatsonODataClientFactory, IWatsonAnalysisClient, WatsonToAzureIngestion, IOptions<CrashDownloadOptions>?, WatsonCrashAttachments, ITitleMappingDal, IActivitySource)
Processes message from pull ingestion or Watson gateway into a crash instance.
Declaration
public WatsonCrashSource(IngestCrashMessage Input, ILogger<WatsonCrashSource> Logger, IWatsonODataClientFactory WatsonODataClientFactory, IWatsonAnalysisClient AnalysisClient, WatsonToAzureIngestion WatsonIngestion, IOptions<CrashDownloadOptions>? DownloadOptions, WatsonCrashAttachments WatsonAttachments, ITitleMappingDal TitleMapping, IActivitySource ActivitySource)
Parameters
Properties
View Source
ActivitySource
Declaration
public IActivitySource ActivitySource { get; init; }
Property Value
Type |
Description |
IActivitySource |
|
View Source
AnalysisClient
Declaration
public IWatsonAnalysisClient AnalysisClient { get; init; }
Property Value
View Source
DefaultAttachments
Gets an enumeration of file names which are attached by default to all crashes.
Declaration
public static IEnumerable<string> DefaultAttachments { get; }
Property Value
View Source
DownloadOptions
Declaration
public IOptions<CrashDownloadOptions>? DownloadOptions { get; init; }
Property Value
View Source
Declaration
public IngestCrashMessage Input { get; init; }
Property Value
View Source
Logger
Declaration
public ILogger<WatsonCrashSource> Logger { get; init; }
Property Value
View Source
TitleMapping
Declaration
public ITitleMappingDal TitleMapping { get; init; }
Property Value
View Source
WatsonAttachments
Declaration
public WatsonCrashAttachments WatsonAttachments { get; init; }
Property Value
Type |
Description |
WatsonCrashAttachments |
|
View Source
WatsonIngestion
Declaration
public WatsonToAzureIngestion WatsonIngestion { get; init; }
Property Value
Type |
Description |
WatsonToAzureIngestion |
|
View Source
WatsonODataClientFactory
Declaration
public IWatsonODataClientFactory WatsonODataClientFactory { get; init; }
Property Value
Type |
Description |
IWatsonODataClientFactory |
|
Methods
View Source
ContainsDevFlagFile(IEnumerable<string>, IEnumerable<string>)
Declaration
public static bool ContainsDevFlagFile(IEnumerable<string> filesInCab, IEnumerable<string> devFlagFiles)
Parameters
Returns
View Source
Loads the specific crash instance from the source.
Declaration
public Task<CrashInstance?> LoadCrashAsync(IReadOnlyCollection<AdditionalFileInfo>? additionalFiles = null)
Parameters
Returns
View Source
Declaration
public static IEnumerable<string> SelectDevFlagFiles(IEnumerable<AdditionalFileInfo> additionalFiles)
Parameters
Returns
Implements