Class AttachmentProcessor
The default attachment processor.
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.Metadata
Assembly: CrashCABN.Metadata.Attachments.dll
Syntax
public class AttachmentProcessor : IAttachmentProcessor
Constructors
View SourceAttachmentProcessor(IAzureBlobProvider)
Initializes a new instance of the AttachmentProcessor class.
Declaration
public AttachmentProcessor(IAzureBlobProvider blobProvider = null)
Parameters
Type | Name | Description |
---|---|---|
IAzureBlobProvider | blobProvider | The Azure blob provider. |
Methods
View SourceLoad(AttachmentInfo, IAttachmentContainer)
Loads an attachment.
Declaration
public virtual async 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 |
---|---|
System.Threading.Tasks.ValueTask<System.Object> | A task representing the asynchronous operation. |