13using Microsoft.AspNetCore.Components.Authorization;
22 public static class BlazorConfigurationExtensions
29 public static CslaOptions AddServerSideBlazor(
this CslaOptions config)
31 return AddServerSideBlazor(config,
null);
40 public static CslaOptions AddServerSideBlazor(
this CslaOptions config, Action<BlazorServerConfigurationOptions> options)
42 var blazorOptions =
new BlazorServerConfigurationOptions();
43 options?.Invoke(blazorOptions);
46 config.PropertyChangedMode(ApplicationContext.PropertyChangedModes.Windows);
49 var managerType = Type.GetType(
"Csla.AspNetCore.Blazor.ApplicationContextManagerBlazor,Csla.AspNetCore");
50 if (managerType is
null)
51 throw new TypeLoadException(
"Csla.AspNetCore.Blazor.ApplicationContextManagerBlazor,Csla.AspNetCore");
57 if (blazorOptions.UseCslaPermissionsPolicy)
Authorization handler for CSLA permissions.
CSLA permissions policy provider.
Base type for creating your own viewmodel.
Options that can be provided to the WithBlazorServerSupport method.
bool UseCslaPermissionsPolicy
Indicates whether the app should be configured to use CSLA permissions policies (default = true).
Defines the interface for an application context manager type.