Class EnvironmentPermissionOptions
- Namespace
- ToSic.Eav.Environment.Sys.Permissions
- Assembly
- ToSic.Eav.Context.dll
Options to be used when setting up ToSic.Sys.Security.Permissions.IEnvironmentPermission.
[InternalApi_DoNotUse_MayChangeWithoutNotice]
public record EnvironmentPermissionOptions : EnvironmentPermissionOptionsBase, IEquatable<EnvironmentPermissionOptionsBase>, IEquatable<EnvironmentPermissionOptions>
- Inheritance
-
objectEnvironmentPermissionOptionsBaseEnvironmentPermissionOptions
- Implements
-
IEquatable<EnvironmentPermissionOptionsBase>
Constructors
EnvironmentPermissionOptions(IContextOfSite, IAppIdentity?)
Options to be used when setting up ToSic.Sys.Security.Permissions.IEnvironmentPermission.
public EnvironmentPermissionOptions(IContextOfSite ContextOfSiteOrBlock, IAppIdentity? AppIdentityOrNull)
Parameters
ContextOfSiteOrBlockIContextOfSiteContext information of site, or also of block if possible. Required.
AppIdentityOrNullIAppIdentityCurrent app identity - if available
Properties
AppIdentityOrNull
Current app identity - if available
public IAppIdentity? AppIdentityOrNull { get; init; }
Property Value
ContextOfSiteOrBlock
public IContextOfSite ContextOfSiteOrBlock { get; init; }
Property Value
- IContextOfSite
Site
public ISite Site { get; }
Property Value
- ISite
User
public IUser User { get; }
Property Value
- IUser