You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want to add attachments to AttachmentCollection from Stream in a non-blocking fashion.
Describe the solution you'd like
Add two methods with the following signature:
Describe alternatives you've considered
Create a MemoryStream and copy the content of attachment to it with Stream.CopyToAsync then pass it to AttachmentCollection.Add.
Additional context
My application need to read attachments from a network socket. If I pass Stream directly to AttachmentCollection.Add it will cause thread blocking too long due to latency of the network socket; thus degrade the performance significantly.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I want to add attachments to
AttachmentCollection
fromStream
in a non-blocking fashion.Describe the solution you'd like
Add two methods with the following signature:
Describe alternatives you've considered
Create a
MemoryStream
and copy the content of attachment to it withStream.CopyToAsync
then pass it toAttachmentCollection.Add
.Additional context
My application need to read attachments from a network socket. If I pass
Stream
directly toAttachmentCollection.Add
it will cause thread blocking too long due to latency of the network socket; thus degrade the performance significantly.The text was updated successfully, but these errors were encountered: