DataWeb
Search Results for

    Show / Hide Table of Contents

    Interface IAuthorizationService

    Namespace: DataWeb.Authorization
    Assembly: DataWeb.Core.dll
    Syntax
    public interface IAuthorizationService

    Methods

    GetPermissionSetAsync(string, IUser, CancellationToken)

    Asynchronously retrieves a permission set for the specified user by name.

    Declaration
    Task<PermissionSet> GetPermissionSetAsync(string name, IUser user, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string name

    The name of the permission set.

    IUser user

    The IUser for which the permission set should be retrieved.

    CancellationToken cancellationToken
    Returns
    Type Description
    Task<PermissionSet>

    A Task that represents the asynchronous operation. The task result contains the retrieved PermissionSet.

    GetPermissionSetsAsync(IUser, CancellationToken)

    Asynchronously retrieves all permission sets for the specified user.

    Declaration
    Task<IEnumerable<PermissionSet>> GetPermissionSetsAsync(IUser user, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    IUser user

    The IUser for which the permission sets should be retrieved.

    CancellationToken cancellationToken
    Returns
    Type Description
    Task<IEnumerable<PermissionSet>>

    A Task that represents the asynchronous operation. The task result contains an IEnumerable<T> of PermissionSet instances.

    In this article
    Back to top Generated by DocFX