Class PullFromWatsonCrashSource
Processes CAB URI from Watson into a crash instance.
Inheritance
System.Object
PullFromWatsonCrashSource
Implements
Inherited Members
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.CrashSources
Assembly: CrashCABN.CrashSources.Watson.dll
Syntax
public class PullFromWatsonCrashSource : ICrashSource
Constructors
View SourcePullFromWatsonCrashSource(IngestCrashMessage, ILogger<PullFromWatsonCrashSource>, WatsonToAzureIngestion, ITitleMappingDal, Nullable<IOptions<CrashDownloadOptions>>)
Initializes a new instance of the PullFromWatsonCrashSource class.
Declaration
public PullFromWatsonCrashSource(IngestCrashMessage input, ILogger<PullFromWatsonCrashSource> logger, WatsonToAzureIngestion watsonIngestion, ITitleMappingDal titleMapping, IOptions<CrashDownloadOptions>? downloadOptions)
Parameters
Type | Name | Description |
---|---|---|
IngestCrashMessage | input | The crash URI provided by Watson and associated title name. |
ILogger<PullFromWatsonCrashSource> | logger | |
WatsonToAzureIngestion | watsonIngestion | |
ITitleMappingDal | titleMapping | |
System.Nullable<IOptions<CrashDownloadOptions>> | downloadOptions |
PullFromWatsonCrashSource(Uri, ILogger<PullFromWatsonCrashSource>, WatsonToAzureIngestion, ITitleMappingDal, Nullable<IOptions<CrashDownloadOptions>>)
Initializes a new instance of the PullFromWatsonCrashSource class.
Declaration
public PullFromWatsonCrashSource(Uri crashUri, ILogger<PullFromWatsonCrashSource> logger, WatsonToAzureIngestion watsonIngestion, ITitleMappingDal titleMapping, IOptions<CrashDownloadOptions>? downloadOptions)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | crashUri | The crash URI provided by Watson. |
ILogger<PullFromWatsonCrashSource> | logger | |
WatsonToAzureIngestion | watsonIngestion | |
ITitleMappingDal | titleMapping | |
System.Nullable<IOptions<CrashDownloadOptions>> | downloadOptions |
Methods
View SourceLoadCrashAsync()
Loads the specific crash instance from the source.
Declaration
public async Task<CrashInstance> LoadCrashAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<CrashInstance> | A crash instance. |