Add RemoteStreamContent to handle remote stream..

pull/8252/head
maliming 5 years ago
parent d09188165e
commit e4800bc218

@ -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