You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
910 B
29 lines
910 B
using Volo.Abp.AspNetCore.Components.Web;
|
|
|
|
namespace LINGYUN.Abp.MicroService.AllInOne;
|
|
|
|
public partial class AllInOneModule
|
|
{
|
|
private void PreConfigureBlazorUI()
|
|
{
|
|
PreConfigure<AbpAspNetCoreComponentsWebOptions>(options =>
|
|
{
|
|
options.IsBlazorWebApp = true;
|
|
});
|
|
|
|
PreConfigure<AbpElsaNextStudioBlazorOptions>(options =>
|
|
{
|
|
options.BackendApiConfig.ConfigureHttpClientBuilder = builder =>
|
|
{
|
|
builder.AuthenticationHandler = typeof(StudioBackendCookieHandler);
|
|
};
|
|
});
|
|
}
|
|
|
|
private void ConfigureBlazorUI(IServiceCollection services)
|
|
{
|
|
services.AddTransient<StudioBackendCookieHandler>();
|
|
services.AddTransient<IHttpConnectionOptionsConfigurator, StudioHttpConnectionOptionsConfigurator>();
|
|
services.AddRazorComponents().AddInteractiveServerComponents();
|
|
}
|
|
}
|
|
|