public virtual T CreateIdentity(HttpRequestMessageInfo request)
        {
            var identity = new T();

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

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