Interface IAttachmentContainer
A container for attachment files, which may or may not have been downloaded into local memory or storage.
Inherited Members
System.Collections.Generic.IEnumerable<CrashCABN.Metadata.AttachmentInfo>.GetEnumerator()
Assembly: CrashCABN.Metadata.Abstractions.dll
public interface IAttachmentContainer : IEnumerable<AttachmentInfo>, IEnumerable
Methods
View Source
Declaration
ValueTask<object> Load(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Threading.Tasks.ValueTask<System.Object> |
|
View Source
Declaration
ValueTask<T> Load<T>(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Threading.Tasks.ValueTask<T> |
|
Type Parameters
View Source
Declaration
ValueTask<object> TryLoad(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
The name of the attachment to load.
|
Returns
Type |
Description |
System.Threading.Tasks.ValueTask<System.Object> |
A task representing the attachment contents, or null if the attachment was missing.
|
Extension Methods