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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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 |
|
|
|
|