Browse Source

Merge pull request #8252 from abpframework/maliming/RemoteStreamContent

Add RemoteStreamContent to handle remote stream.
pull/8253/head
liangshiwei 6 years ago
committed by GitHub
parent
commit
9ce5b3151d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/DynamicProxying/DynamicHttpProxyInterceptor.cs

3
framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/DynamicProxying/DynamicHttpProxyInterceptor.cs

@ -106,7 +106,8 @@ namespace Volo.Abp.Http.Client.DynamicProxying
{
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

Loading…
Cancel
Save