/// <summary> /// Initializes a new instance of the <see cref="RuleSetContext" /> class. /// </summary> /// <param name="ruleSet">The rule set.</param> /// <param name="responseContent">The response content.</param> /// <param name="httpContext">The HTTP context.</param> public RuleSetContext(RuleSet ruleSet, byte[] responseContent, HttpContextBase httpContext) { if (ruleSet == null) throw new ArgumentNullException("ruleSet"); if (responseContent == null) throw new ArgumentNullException("responseContent"); if (httpContext == null) throw new ArgumentNullException("httpContext"); RuleSet = ruleSet; _responseContent = responseContent; RequestedUrl = httpContext.Request.Url; HttpContext = httpContext; IsOutputRuleSet = true; LogCategory = String.Empty; }
/// <summary> /// Initializes a new instance of the <see cref="RuleSetContext"/> class. /// </summary> /// <param name="ruleSet">The rule set.</param> /// <param name="requestedUrl">The requested URL.</param> /// <param name="httpContext">The HTTP context.</param> public RuleSetContext(RuleSet ruleSet, Uri requestedUrl, HttpContextBase httpContext) { if (ruleSet == null) throw new ArgumentNullException("ruleSet"); if (requestedUrl == null) throw new ArgumentNullException("requestedUrl"); if (httpContext == null) throw new ArgumentNullException("httpContext"); RuleSet = ruleSet; _responseContent = null; RequestedUrl = requestedUrl; HttpContext = httpContext; IsOutputRuleSet = false; LogCategory = String.Empty; }
/// <summary> /// Initializes a new instance of the <see cref="FormActionFilter"/> class. /// </summary> /// <param name="stream">The stream.</param> /// <param name="context"></param> /// <param name="ruleSet"></param> public RuleSetOutputFilter(Stream stream, HttpContextBase context, RuleSet ruleSet) { _responseStream = stream; _context = context; _ruleSet = ruleSet; }