From 3b19a862dfd980bb68ac5fab2cba357c7bf505c1 Mon Sep 17 00:00:00 2001 From: volkanceylan Date: Sun, 5 May 2024 00:54:53 +0300 Subject: [PATCH] Add FileName property to ReportRenderResult so that download name can be determined from the result without having --- .../Reporting/IReportCallbackInterceptor.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/Serenity.Net.Services/Reporting/IReportCallbackInterceptor.cs diff --git a/src/Serenity.Net.Services/Reporting/IReportCallbackInterceptor.cs b/src/Serenity.Net.Services/Reporting/IReportCallbackInterceptor.cs new file mode 100644 index 0000000000..087db2b0ee --- /dev/null +++ b/src/Serenity.Net.Services/Reporting/IReportCallbackInterceptor.cs @@ -0,0 +1,14 @@ +namespace Serenity.Reporting; + +/// +/// Abstraction for a report callback interceptor that is called by ~/Serenity.Extensions/Report/Render. +/// This is implemented by HtmlReportCallbackUrlInterceptor to implement impersonation and transient +/// granting during report callbacks. +/// +public interface IReportCallbackInterceptor +{ + /// + /// Intercepts ReportController Render action callbacks. + /// + ReportRenderResult InterceptCallback(ReportRenderOptions options, Func action); +} \ No newline at end of file