public GenericHTTPDOSProtector(GenericHTTPMethod normalMethod, GenericHTTPMethod throttledMethod, BasicDosProtectorOptions options)
        {
            _normalMethod    = normalMethod;
            _throttledMethod = throttledMethod;

            _options      = options;
            _dosProtector = new BasicDOSProtector(_options);
        }
        public XmlRpcBasicDOSProtector(XmlRpcMethod normalMethod, XmlRpcMethod throttledMethod, BasicDosProtectorOptions options)
        {
            _normalMethod    = normalMethod;
            _throttledMethod = throttledMethod;

            _options      = options;
            _dosProtector = new BasicDOSProtector(_options);
        }
 public GenericHTTPDOSProtector(GenericHTTPMethod normalMethod, GenericHTTPMethod throttledMethod, BasicDosProtectorOptions options)
 {
     _normalMethod = normalMethod;
     _throttledMethod = throttledMethod;
     
     _options = options;
     _dosProtector = new BasicDOSProtector(_options);
 }
Esempio n. 4
0
 protected BaseStreamHandlerBasicDOSProtector(string httpMethod, string path, string name, string description, BasicDosProtectorOptions options)
     : base(httpMethod, path, name, description)
 {
     _options      = options;
     _dosProtector = new BasicDOSProtector(_options);
 }
 protected BaseStreamHandlerBasicDOSProtector(string httpMethod, string path, string name, string description, BasicDosProtectorOptions options)
     : base(httpMethod, path, name, description)
 {
     _options = options;
     _dosProtector = new BasicDOSProtector(_options);
 }