Search Results for

    Show / Hide Table of Contents

    Class AccountExtensions

    Содержит методы расширения для работы с учётными записями.

    Inheritance
    System.Object
    AccountExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lers.Administration
    Assembly: Lers.Server.System.dll
    Syntax
    public static class AccountExtensions

    Methods

    IsAccountGroupAllowed(IAccount, AccountGroup)

    Проверяет доступна ли группа учётных записей пользователю.

    Declaration
    public static bool IsAccountGroupAllowed(this IAccount account, AccountGroup group)
    Parameters
    Type Name Description
    IAccount account
    Lers.Models.AccountGroup group
    Returns
    Type Description
    System.Boolean

    IsMeasurePointAllowed(IAccount, IMeasurePoint)

    Проверяет доступна ли точка учёта для данной учётной записи.

    Declaration
    public static bool IsMeasurePointAllowed(this IAccount account, IMeasurePoint measurePoint)
    Parameters
    Type Name Description
    IAccount account
    IMeasurePoint measurePoint
    Returns
    Type Description
    System.Boolean

    IsMeasurePointAllowedAsync(IAccount, IMeasurePoint)

    Асинхронно проверяет, доступен ли объект для учётной записи.

    Declaration
    public static ValueTask<bool> IsMeasurePointAllowedAsync(this IAccount account, IMeasurePoint measurePoint)
    Parameters
    Type Name Description
    IAccount account
    IMeasurePoint measurePoint
    Returns
    Type Description
    ValueTask<System.Boolean>

    IsNodeAllowed(IAccount, INode)

    Проверяет доступен ли объект для учётной записи.

    Declaration
    public static bool IsNodeAllowed(this IAccount account, INode node)
    Parameters
    Type Name Description
    IAccount account
    INode node
    Returns
    Type Description
    System.Boolean

    IsNodeAllowedAsync(IAccount, INode)

    Асинхронно проверяет, доступен ли объект для учётной записи.

    Declaration
    public static ValueTask<bool> IsNodeAllowedAsync(this IAccount account, INode node)
    Parameters
    Type Name Description
    IAccount account
    INode node
    Returns
    Type Description
    ValueTask<System.Boolean>

    ValidateCanExecuteRequest(IAccount)

    Проверяет, что пользователю разрешено выполнять запрос.

    Declaration
    public static void ValidateCanExecuteRequest(this IAccount account)
    Parameters
    Type Name Description
    IAccount account
    Exceptions
    Type Condition
    LoginException
    In This Article
    Back to top ©2018 - 2026, ООО "ЛЭРС УЧЁТ"