OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Class ScopedPermissionChecker

Inheritance
System.Object
ScopedPermissionChecker
Implements
IPermissionChecker
Namespace: OpenMod.Core.Permissions
Assembly: OpenMod.Core.dll
Syntax
public class ScopedPermissionChecker : object, IPermissionChecker

Constructors

| Improve this Doc View Source

ScopedPermissionChecker(IRuntime, Lazy<IOpenModComponent>)

Declaration
public ScopedPermissionChecker(IRuntime runtime, Lazy<IOpenModComponent> component)
Parameters
Type Name Description
IRuntime runtime
Lazy<IOpenModComponent> component

Properties

| Improve this Doc View Source

PermissionCheckProviders

Declaration
public IReadOnlyCollection<IPermissionCheckProvider> PermissionCheckProviders { get; }
Property Value
Type Description
IReadOnlyCollection<IPermissionCheckProvider>
| Improve this Doc View Source

PermissionStores

Declaration
public IReadOnlyCollection<IPermissionStore> PermissionStores { get; }
Property Value
Type Description
IReadOnlyCollection<IPermissionStore>

Methods

| Improve this Doc View Source

CheckPermissionAsync(IPermissionActor, String)

Declaration
public Task<PermissionGrantResult> CheckPermissionAsync(IPermissionActor actor, string permission)
Parameters
Type Name Description
IPermissionActor actor
System.String permission
Returns
Type Description
Task<PermissionGrantResult>
| Improve this Doc View Source

InitAsync()

Declaration
public Task InitAsync()
Returns
Type Description
Task

Implements

IPermissionChecker

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)