protected override void WriteFile(HttpResponseBase response) { string resizedFilePath = GetResizedImagePath(_filePath, _width, _height); response.SetDefaultImageHeaders(resizedFilePath); WriteFileToResponse(resizedFilePath, response); }
/// <summary> /// Writes the file to the response. /// </summary> /// <param name="response">The response.</param> protected override void WriteFile(HttpResponseBase response) { lock (syncLock) { var resizedFilePath = ServerFileHelper.ServerFileHelper.GetResizedImagePath(this.filePath, this.width, this.height); response.SetDefaultImageHeaders(resizedFilePath); this.WriteFileToResponse(resizedFilePath, response); } }
protected override void WriteFile(HttpResponseBase response) { response.SetDefaultImageHeaders(); base.WriteFile(response); }