C# Class ServiceStack.RestrictExtensions

Afficher le fichier Open project: ServiceStack/ServiceStack

Méthodes publiques

Méthode Description
HasAnyRestrictionsOf ( RequestAttributes allRestrictions, RequestAttributes restrictions ) : bool
ToAllowedFlagsSet ( this restrictTo ) : RequestAttributes

Converts from a User intended restriction to a flag with all the allowed attribute flags set, e.g: If No Network restrictions were specified all Network access types are allowed, e.g: restrict EndpointAttributes.None => ... 111 If a Network restriction was specified, only it will be allowed, e.g: restrict EndpointAttributes.LocalSubnet => ... 010 The returned Enum will have a flag with all the allowed attributes set

Method Details

HasAnyRestrictionsOf() public static méthode

public static HasAnyRestrictionsOf ( RequestAttributes allRestrictions, RequestAttributes restrictions ) : bool
allRestrictions RequestAttributes
restrictions RequestAttributes
Résultat bool

ToAllowedFlagsSet() public static méthode

Converts from a User intended restriction to a flag with all the allowed attribute flags set, e.g: If No Network restrictions were specified all Network access types are allowed, e.g: restrict EndpointAttributes.None => ... 111 If a Network restriction was specified, only it will be allowed, e.g: restrict EndpointAttributes.LocalSubnet => ... 010 The returned Enum will have a flag with all the allowed attributes set
public static ToAllowedFlagsSet ( this restrictTo ) : RequestAttributes
restrictTo this
Résultat RequestAttributes