C# Class ServiceStack.RestrictAttribute

Inheritance: AttributeBase
Exibir arquivo Open project: ServiceStack/ServiceStack

Public Methods

Method 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

Method Description
ToAllowedFlagsSet ( RequestAttributes restrictToAny ) : RequestAttributes[]

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

Method Details

CanShowTo() public method

public CanShowTo ( RequestAttributes restrictions ) : bool
restrictions RequestAttributes
return bool

HasAccessTo() public method

public HasAccessTo ( RequestAttributes restrictions ) : bool
restrictions RequestAttributes
return bool

RestrictAttribute() public method

public RestrictAttribute ( ) : System
return System

RestrictAttribute() public method

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