Class PermissionChecker
Inheritance
System.Object
PermissionChecker
Implements
IAsyncDisposable
Assembly: OpenMod.Core.dll
Syntax
public class PermissionChecker : object, IPermissionChecker, IAsyncDisposable
Constructors
|
Improve this Doc
View Source
PermissionChecker(ILifetimeScope, IPermissionRegistry, IOptions<PermissionCheckerOptions>, ILogger<PermissionChecker>)
Declaration
public PermissionChecker(ILifetimeScope lifetimeScope, IPermissionRegistry permissionRegistry, IOptions<PermissionCheckerOptions> options, ILogger<PermissionChecker> logger)
Parameters
Properties
|
Improve this Doc
View Source
PermissionCheckProviders
Declaration
public IReadOnlyCollection<IPermissionCheckProvider> PermissionCheckProviders { get; }
Property Value
|
Improve this Doc
View Source
PermissionStores
Declaration
public IReadOnlyCollection<IPermissionStore> PermissionStores { get; }
Property Value
Methods
|
Improve this Doc
View Source
CheckPermissionAsync(IPermissionActor, String)
Declaration
public Task<PermissionGrantResult> CheckPermissionAsync(IPermissionActor actor, string permission)
Parameters
Returns
|
Improve this Doc
View Source
DisposeAsync()
Declaration
public ValueTask DisposeAsync()
Returns
Type |
Description |
ValueTask |
|
|
Improve this Doc
View Source
InitAsync()
Declaration
Returns
Implements
IAsyncDisposable
Extension Methods