Browse Source
SetBrowserRequestStreamingEnabled in wasm mode.
pull/24794/head
maliming
3 days ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
4 additions and
1 deletions
-
framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/AbpBlazorClientHttpMessageHandler.cs
|
|
|
@ -4,13 +4,15 @@ using System.Net.Http.Headers; |
|
|
|
using System.Threading; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.AspNetCore.Components; |
|
|
|
using Microsoft.AspNetCore.Components.WebAssembly.Http; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Microsoft.JSInterop; |
|
|
|
using Volo.Abp.AspNetCore.Components.Progression; |
|
|
|
using Volo.Abp.AspNetCore.Components.Web; |
|
|
|
using Volo.Abp.DependencyInjection; |
|
|
|
using Volo.Abp.Timing; |
|
|
|
|
|
|
|
namespace Volo.Abp.AspNetCore.Components.Web; |
|
|
|
namespace Volo.Abp.AspNetCore.Components.WebAssembly; |
|
|
|
|
|
|
|
public class AbpBlazorClientHttpMessageHandler : DelegatingHandler, ITransientDependency |
|
|
|
{ |
|
|
|
@ -51,6 +53,7 @@ public class AbpBlazorClientHttpMessageHandler : DelegatingHandler, ITransientDe |
|
|
|
options.Type = UiPageProgressType.Info; |
|
|
|
}); |
|
|
|
|
|
|
|
request.SetBrowserRequestStreamingEnabled(true); |
|
|
|
await SetLanguageAsync(request, cancellationToken); |
|
|
|
await SetAntiForgeryTokenAsync(request); |
|
|
|
await SetTimeZoneAsync(request); |