C# Class ServiceStack.RestrictAttribute

Inheritance: AttributeBase
Afficher le fichier Open project: ServiceStack/ServiceStack

Méthodes publiques

Méthode Description
CanShowTo ( RequestAttributes restrictions ) : bool
HasAccessTo ( RequestAttributes restrictions ) : bool
RestrictAttribute ( ) : System
RestrictAttribute ( RequestAttributes allowedAccessScenarios, RequestAttributes visibleToScenarios ) : System

Restrict access and metadata visibility to any of the specified access scenarios

Private Methods

Méthode Description
ToAllowedFlagsSet ( RequestAttributes restrictToAny ) : RequestAttributes[]

Returns the allowed set of scenarios based on the user-specified restrictions

Method Details

CanShowTo() public méthode

public CanShowTo ( RequestAttributes restrictions ) : bool
restrictions RequestAttributes
Résultat bool

HasAccessTo() public méthode

public HasAccessTo ( RequestAttributes restrictions ) : bool
restrictions RequestAttributes
Résultat bool

RestrictAttribute() public méthode

public RestrictAttribute ( ) : System
Résultat System

RestrictAttribute() public méthode

Restrict access and metadata visibility to any of the specified access scenarios
public RestrictAttribute ( RequestAttributes allowedAccessScenarios, RequestAttributes visibleToScenarios ) : System
allowedAccessScenarios RequestAttributes
visibleToScenarios RequestAttributes
Résultat System