Class WatsonAttachmentProcessor
The Watson attachment processor.
Implements
Inherited Members
Namespace: CrashCABN.PullIngestion
Assembly: CrashCABN.PullIngestion.dll
Syntax
public record WatsonAttachmentProcessor : AttachmentProcessor, IAttachmentProcessor, IEquatable<AttachmentProcessor>, IEquatable<WatsonAttachmentProcessor>
Constructors
View SourceWatsonAttachmentProcessor(IAzureBlobProvider, IWatsonAnalysisClient)
The Watson attachment processor.
Declaration
public WatsonAttachmentProcessor(IAzureBlobProvider BlobProvider, IWatsonAnalysisClient AnalysisClient)
Parameters
Type | Name | Description |
---|---|---|
IAzureBlobProvider | BlobProvider | |
IWatsonAnalysisClient | AnalysisClient |
Properties
View SourceAnalysisClient
Declaration
public IWatsonAnalysisClient AnalysisClient { get; init; }
Property Value
Type | Description |
---|---|
IWatsonAnalysisClient |
Methods
View SourceLoad(AttachmentInfo, IAttachmentContainer)
Loads an attachment.
Declaration
public override ValueTask<object> Load(AttachmentInfo attachment, IAttachmentContainer container)
Parameters
Type | Name | Description |
---|---|---|
AttachmentInfo | attachment | The attachment to load. |
IAttachmentContainer | container | The attachment container to use, in case other attachments need to be loaded. |
Returns
Type | Description |
---|---|
ValueTask<object> | A task representing the asynchronous operation. |