Skip to content

Commit

Permalink
Merge pull request #8252 from abpframework/maliming/RemoteStreamContent
Browse files Browse the repository at this point in the history
Add RemoteStreamContent to handle remote stream.
  • Loading branch information
realLiangshiwei committed Mar 30, 2021
2 parents d091881 + e4800bc commit 9ce5b31
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ private async Task<T> MakeRequestAndGetResultAsync<T>(IAbpMethodInvocation invoc
{
var responseContent = await MakeRequestAsync(invocation);

if (typeof(T) == typeof(IRemoteStreamContent))
if (typeof(T) == typeof(IRemoteStreamContent) ||
typeof(T) == typeof(RemoteStreamContent))
{
/* returning a class that holds a reference to response
* content just to be sure that GC does not dispose of
Expand Down

0 comments on commit 9ce5b31

Please sign in to comment.