Class ChannelAttachment
File or image attachment on an inbound channel message.
public record ChannelAttachment : IEquatable<ChannelAttachment>
- Inheritance
-
ChannelAttachment
- Implements
- Inherited Members
Constructors
ChannelAttachment(string, string, long, Func<CancellationToken, Task<Stream>>)
File or image attachment on an inbound channel message.
public ChannelAttachment(string FileName, string ContentType, long SizeBytes, Func<CancellationToken, Task<Stream>> OpenReadAsync)
Parameters
FileNamestringContentTypestringSizeByteslongOpenReadAsyncFunc<CancellationToken, Task<Stream>>
Properties
ContentType
public string ContentType { get; init; }
Property Value
FileName
public string FileName { get; init; }
Property Value
OpenReadAsync
public Func<CancellationToken, Task<Stream>> OpenReadAsync { get; init; }
Property Value
SizeBytes
public long SizeBytes { get; init; }