Browse Source

Add AbpAuthenticationSessionState to DynamicLayoutComponent

pull/19563/head
liangshiwei 2 years ago
parent
commit
2543f10981
  1. 11
      framework/src/Volo.Abp.AspNetCore.Components.Web.Theming/AbpAspNetCoreComponentsWebThemingModule.cs

11
framework/src/Volo.Abp.AspNetCore.Components.Web.Theming/AbpAspNetCoreComponentsWebThemingModule.cs

@ -1,4 +1,5 @@
using Volo.Abp.BlazoriseUI;
using Volo.Abp.AspNetCore.Components.Web.Security;
using Volo.Abp.BlazoriseUI;
using Volo.Abp.Modularity;
using Volo.Abp.UI.Navigation;
@ -10,5 +11,11 @@ namespace Volo.Abp.AspNetCore.Components.Web.Theming;
)]
public class AbpAspNetCoreComponentsWebThemingModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpDynamicLayoutComponentOptions>(options =>
{
options.Components.Add(typeof(AbpAuthenticationSessionState), null);
});
}
}

Loading…
Cancel
Save