Show / Hide Table of Contents

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()
Namespace: CrashCABN.Metadata
Assembly: CrashCABN.Metadata.Abstractions.dll
Syntax
public interface IAttachmentContainer : IEnumerable<AttachmentInfo>, IEnumerable

Methods

View Source

Load(String)

Declaration
ValueTask<object> Load(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.Threading.Tasks.ValueTask<System.Object>
View Source

Load<T>(String)

Declaration
ValueTask<T> Load<T>(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.Threading.Tasks.ValueTask<T>
Type Parameters
Name Description
T
View Source

TryLoad(String)

Loads an attachment from the IAttachmentContainer.

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

IEnumerableExtensions.IterateWhileAsync<T>(IEnumerable<T>, Func<T, Task<Boolean>>, CancellationToken)
  • View Source
In This Article
Back to top Generated by DocFX