Microsoft.Bot.Connector.AttachmentsExtensions Class Reference

Extension methods for Attachments. More...

Static Public Member Functions

static byte[] GetAttachment (this IAttachments operations, string attachmentId, string viewId)
 GetAttachment More...
 
static async Task< byte[]> GetAttachmentAsync (this IAttachments operations, string attachmentId, string viewId, CancellationToken cancellationToken=default(CancellationToken))
 GetAttachment More...
 
static AttachmentInfo GetAttachmentInfo (this IAttachments operations, string attachmentId)
 GetAttachmentInfo More...
 
static async Task< AttachmentInfoGetAttachmentInfoAsync (this IAttachments operations, string attachmentId, CancellationToken cancellationToken=default(CancellationToken))
 GetAttachmentInfo More...
 
static System.IO.Stream GetAttachmentStream (this IAttachments operations, string attachmentId, string viewId)
 GetAttachmentStream More...
 
static async Task< System.IO.Stream > GetAttachmentStreamAsync (this IAttachments operations, string attachmentId, string viewId, CancellationToken cancellationToken=default(CancellationToken))
 GetAttachmentStreamAsync More...
 

Detailed Description

Extension methods for Attachments.

Definition at line 18 of file AttachmentsExtensions.cs.

Member Function Documentation

static byte [] Microsoft.Bot.Connector.AttachmentsExtensions.GetAttachment ( this IAttachments  operations,
string  attachmentId,
string  viewId 
)
inlinestatic

GetAttachment

Get the named view as binary content

Parameters
operationsThe operations group for this extension method.
attachmentIdattachment id
viewIdView id from attachmentInfo

Definition at line 69 of file AttachmentsExtensions.cs.

static async Task<byte[]> Microsoft.Bot.Connector.AttachmentsExtensions.GetAttachmentAsync ( this IAttachments  operations,
string  attachmentId,
string  viewId,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inlinestatic

GetAttachment

Get the named view as binary content

Parameters
operationsThe operations group for this extension method.
attachmentIdattachment id
viewIdView id from attachmentInfo
cancellationTokenThe cancellation token.

Definition at line 90 of file AttachmentsExtensions.cs.

static AttachmentInfo Microsoft.Bot.Connector.AttachmentsExtensions.GetAttachmentInfo ( this IAttachments  operations,
string  attachmentId 
)
inlinestatic

GetAttachmentInfo

Get AttachmentInfo structure describing the attachment views

Parameters
operationsThe operations group for this extension method.
attachmentIdattachment id

Definition at line 30 of file AttachmentsExtensions.cs.

static async Task<AttachmentInfo> Microsoft.Bot.Connector.AttachmentsExtensions.GetAttachmentInfoAsync ( this IAttachments  operations,
string  attachmentId,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inlinestatic

GetAttachmentInfo

Get AttachmentInfo structure describing the attachment views

Parameters
operationsThe operations group for this extension method.
attachmentIdattachment id
cancellationTokenThe cancellation token.

Definition at line 48 of file AttachmentsExtensions.cs.

static System.IO.Stream Microsoft.Bot.Connector.AttachmentsExtensions.GetAttachmentStream ( this IAttachments  operations,
string  attachmentId,
string  viewId 
)
inlinestatic

GetAttachmentStream

Get the named view as binary stream

Parameters
operationsThe operations group for this extension method.
attachmentIdattachment id
viewIdView id from attachmentInfo

Definition at line 114 of file AttachmentsExtensions.cs.

static async Task<System.IO.Stream> Microsoft.Bot.Connector.AttachmentsExtensions.GetAttachmentStreamAsync ( this IAttachments  operations,
string  attachmentId,
string  viewId,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inlinestatic

GetAttachmentStreamAsync

Get the named view as binary content as a stream

Parameters
operationsThe operations group for this extension method.
attachmentIdattachment id
viewIdView id from attachmentInfo
cancellationTokenThe cancellation token.

Definition at line 135 of file AttachmentsExtensions.cs.


The documentation for this class was generated from the following file: