title: PushContentStream() is not working in asp.net core
body: <p>This is my code same thing I have done asp.net framework, It is working fine in .net but Now I migrated the code to asp.net core, now it's not working.</p>
  <pre><code>public async void onStreamAvailable(Stream outputStream, HttpContent content, TransportContext context){
  try
              {
                 string fileName = $&quot;{inputSessionId}.wav&quot;;  
  
                  //Validate file availability
                  if (await cloudBlobContainer.GetBlockBlobReference(fileName).ExistsAsync())
                  {
                      blockBlob = cloudBlobContainer.GetBlockBlobReference(fileName);                    
                      Stream blobStream = blockBlob.OpenReadAsync().Result;
  
                      //here set the size of buffer, you can set any size  
                      var buffer = new byte[65536];
                      using (var f = blockBlob.OpenReadAsync().Result)
                      {
                          var length = (int)f.Length;
                          var bytesRead = 1;
                          while (length &gt; 0 &amp;&amp; bytesRead &gt; 0)
                          {
                              //here we are reading the buffer from orginal file
                              bytesRead = f.Read(buffer, 0, Math.Min(length, buffer.Length));
  
                              //here we are writing the readed buffer to output
                              await outputStream.WriteAsync(buffer, 0, bytesRead);
                              length -= bytesRead;
                          }
                      }
                  }
  </code></pre>
  <p>// I am calling this method from here</p>
  <pre><code>Action&lt;Stream, HttpContent, TransportContext&gt; writeToStream = audioStream.onStreamAvailable;
     response.Content = new PushStreamContent(writeToStream, new MediaTypeHeaderValue(&quot;audio/wav&quot;));
     return response;
  </code></pre>