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

public static GetAttributes ( IPAddress ipAddress ) : ServiceStack.Host.RequestAttributes
ipAddress System.Net.IPAddress
Результат ServiceStack.Host.RequestAttributes
Пример #1
0
        public RequestAttributes GetRequestAttributes(System.ServiceModel.OperationContext operationContext)
        {
            if (!HostContext.Config.EnableAccessRestrictions)
            {
                return(default(RequestAttributes));
            }

            var portRestrictions = default(RequestAttributes);
            var ipAddress        = GetIpAddress(operationContext);

            portRestrictions |= HttpRequestExtensions.GetAttributes(ipAddress);

            //TODO: work out if the request was over a secure channel
            //portRestrictions |= request.IsSecureConnection ? PortRestriction.Secure : PortRestriction.InSecure;

            return(portRestrictions);
        }