C# Класс Serenity.Web.TransientGrantingPermissionService

Adds temporary granting support to any IPermissionService implementation
Register this class in your application start, to allow granting permissions temporarily. registrar.RegisterInstance<IPermissionService>(new TransientGrantingPermissionService(new MyPermissionService()))
Наследование: IPermissionService, ITransientGrantor
Показать файл Открыть проект

Открытые методы

Метод Описание
Grant ( ) : void

Grants specified permissions temporarily (or makes it look like)

GrantAll ( ) : void

Grants all permissions temporarily (or makes it look like)

HasPermission ( string permission ) : bool
TransientGrantingPermissionService ( IPermissionService permissionService ) : Serenity.Abstractions
UndoGrant ( ) : void

Undoes last grant or grant all operation

Приватные методы

Метод Описание
GetGrantingStack ( bool createIfNull ) : Stack>

Описание методов

Grant() публичный Метод

Grants specified permissions temporarily (or makes it look like)
public Grant ( ) : void
Результат void

GrantAll() публичный Метод

Grants all permissions temporarily (or makes it look like)
public GrantAll ( ) : void
Результат void

HasPermission() публичный Метод

public HasPermission ( string permission ) : bool
permission string
Результат bool

TransientGrantingPermissionService() публичный Метод

public TransientGrantingPermissionService ( IPermissionService permissionService ) : Serenity.Abstractions
permissionService IPermissionService
Результат Serenity.Abstractions

UndoGrant() публичный Метод

Undoes last grant or grant all operation
public UndoGrant ( ) : void
Результат void