C# Класс ServiceStack.RestrictExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

HasAnyRestrictionsOf() публичный статический Метод

public static HasAnyRestrictionsOf ( RequestAttributes allRestrictions, RequestAttributes restrictions ) : bool
allRestrictions RequestAttributes
restrictions RequestAttributes
Результат bool

ToAllowedFlagsSet() публичный статический Метод

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
Результат RequestAttributes