Search Results for

    Show / Hide Table of Contents

    Class IvSecurity

    Keeps track of the current user of the application. Updated by the IvSecurityContextMiddleware

    Inheritance
    System.Object
    IvSecurity
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: ImageVault.Core.Common.Security
    Assembly: ImageVault.Core.dll
    Syntax
    public static class IvSecurity

    Properties

    CurrentUser

    Gets/sets the current user (is updated by the IvSecurityContextMiddleware)

    Declaration
    public static IUser CurrentUser { get; set; }
    Property Value
    Type Description
    IUser

    IsSet

    Checks if the CurrentUser is set

    Declaration
    public static bool IsSet { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    IsUserInRole(GlobalRoles)

    Checks if the CurrentUser is member of the supplied role

    Declaration
    public static bool IsUserInRole(GlobalRoles role)
    Parameters
    Type Name Description
    GlobalRoles role
    Returns
    Type Description
    System.Boolean
    In This Article
    Back to top (c) Meriworks 2002-2022