C# 클래스 ServiceStack.RestrictExtensions

파일 보기 프로젝트 열기: ServiceStack/ServiceStack

공개 메소드들

메소드 설명
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