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); }
public virtual void Initialize(HttpRequestMessageInfo request) { IPAddress = request.IPAddress; Method = request.Method; RequestUrL = request.RequestUrL; }
public abstract CheckResult Check(HttpRequestMessageInfo request, bool increment = true);