示例#1
0
        public virtual T CreateIdentity(HttpRequestMessageInfo request)
        {
            var identity = new T();

            identity.Initialize(request);
            return(identity);
        }
示例#2
0
        public override CheckResult Check(HttpRequestMessageInfo request, bool increment = true)
        {
            T identity = CreateIdentity(request);

            return(base.Check(identity, increment));
        }
示例#3
0
 public override bool Check(HttpRequestMessageInfo request, out CheckResult result, bool increment = true)
 {
     result = Check(request, increment);
     return(result.IsThrottled);
 }
示例#4
0
 public virtual void Initialize(HttpRequestMessageInfo request)
 {
     IPAddress  = request.IPAddress;
     Method     = request.Method;
     RequestUrL = request.RequestUrL;
 }
示例#5
0
 public abstract CheckResult Check(HttpRequestMessageInfo request, bool increment = true);