/// <summary> /// Initializes a new instance of the <see cref="RedirectActionResultWithCorsWithoutCaching"/> class. /// </summary> /// <param name="request"> /// The request. /// </param> /// <param name="model"> /// The model. /// </param> /// <param name="corsSettings"> /// The cors settings. /// </param> public RedirectActionResultWithCorsWithoutCaching(HttpRequest request, object model, string corsSettings) : base(request, model) { this.ResponseHeaders.Add(new KeyValuePair<string, string>("Access-Control-Allow-Origin", corsSettings)); this.ResponseHeaders.Add(new KeyValuePair<string, string>("Cache-Control", "private, max-age=0, no-cache")); }
/// <summary> /// Initializes a new instance of the <see cref="JsonActionResultWithoutCaching"/> class. /// </summary> /// <param name="r"> /// The r. /// </param> /// <param name="model"> /// The model. /// </param> /// <exception cref="Exception"> /// </exception> public JsonActionResultWithoutCaching(HttpRequest r, object model) : base(r, model) { this.ResponseHeaders.Add(new KeyValuePair<string, string>("Cache-Control", "private, max-age=0, no-cache")); throw new Exception(); }
/// <summary> /// The process request. /// </summary> /// <param name="request"> /// The request. /// </param> /// <returns> /// The <see cref="HttpResponse"/>. /// </returns> public abstract HttpResponse ProcessRequest(HttpRequest request);