C# Class Nettiers.AdventureWorks.Contracts.ExtendedPrincipal

This class is used to extend the Thread.CurrentPrincipal object and add our own custom properties and methods.
Inheritance: IPrincipal
Mostra file Open project: netTiers/netTiers Class Usage Examples

Public Methods

Method Description
CanPerformCommand ( System.Guid CommandGuid ) : bool

CanPerformCommand

CanPerformCommand ( string CommandGuid ) : bool

CanPerformCommand

ExtendedPrincipal ( IIdentity identity ) : System

Extended Principal Constructor

IsInRole ( System.Guid RoleGuid ) : bool

IsInRole

IsInRole ( string roleGuid ) : bool

IsInRole

Method Details

CanPerformCommand() public method

CanPerformCommand
public CanPerformCommand ( System.Guid CommandGuid ) : bool
CommandGuid System.Guid Command Guid
return bool

CanPerformCommand() public method

CanPerformCommand
public CanPerformCommand ( string CommandGuid ) : bool
CommandGuid string Command Guid
return bool

ExtendedPrincipal() public method

Extended Principal Constructor
public ExtendedPrincipal ( IIdentity identity ) : System
identity IIdentity
return System

IsInRole() public method

IsInRole
public IsInRole ( System.Guid RoleGuid ) : bool
RoleGuid System.Guid Role Guid
return bool

IsInRole() public method

IsInRole
public IsInRole ( string roleGuid ) : bool
roleGuid string role Guid
return bool