InedoSDK Reference
Version:

UserContext Class

Represents the current user context.

Inheritance Hierarchy

  • object
    • Inedo.Security.UserContext

Syntax

public sealed class UserContext

Constructors

Name Description
UserContext(Inedo.Extensibility.UserDirectories.IUserDirectoryUser user)

Initializes a new instance of the UserContext class

Properties

Name Description
Current

Gets the current instance.

CurrentTaskChecker

Gets the underlying ITaskChecker.

IsAvailable

Gets a value indicating whether a user is currently in context.

UserInfo

Gets information about the user currently in context.

Methods

Name Description
CanPerformAnyTask

Determines the current user can perform any tasks

CanPerformTask(ScopedTask& task)
InvalidateCache

Clears any cached privileges.

ValidatePrivileges(ScopedTask& task)