title: Timeouts not supported on this Stream
body: <p>I used have an API that used to connect to a mailing service that sends mail. One of the parameters that was provided by this mailing service was a Stream for Attachments. The sendMail function was synchronous so I did not have any problem</p>
  
  <p>Except that we are trying to make a new API similar to the one above. While the original is regular .NET, The new one we are using uses .NET Core 2,0. Which means that connecting to that service, everything becomes asynchronous.</p>
  
  <p>I wanted to make my service run like this</p>
  
  <pre><code>        try
          {
              // Send the email.
              var result = mailService.SendMailWithMessageAsync(emailMessage, "DefaultMail").Result;
          }
          catch (Exception ex)
          {
              string error = ex.ToString();
          }
  </code></pre>
  
  <p>And I got the memory timeout not supported. If I do not use any attachments, my mail service will work fine.</p>
  
  <p>Any suggestions?</p>