Class ModuleResourceReport
Report module that exports localization resources to an Excel file, optionally filtered by resource context and culture.
Inherited Members
Namespace: DataWeb.Structure.Modules
Assembly: DataWeb.Core.dll
Syntax
public class ModuleResourceReport : ModuleReport
Constructors
ModuleResourceReport(Section, NavigationContext, IServiceProvider)
Report module that exports localization resources to an Excel file, optionally filtered by resource context and culture.
Declaration
public ModuleResourceReport(Section section, NavigationContext navigationContext, IServiceProvider serviceProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| Section | section | |
| NavigationContext | navigationContext | |
| IServiceProvider | serviceProvider |
Methods
GetReportNameAsync(Item, Dictionary<string, object>, CancellationToken)
Retrieves the name of the report to be generated.
Declaration
public override Task<string> GetReportNameAsync(Item item, Dictionary<string, object> moduleData, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Item | item | The item for which the report name is being retrieved. |
| Dictionary<string, object> | moduleData | The data associated with the report generation. |
| CancellationToken | cancellationToken | Token to cancel the asynchronous operation. |
Returns
| Type | Description |
|---|---|
| Task<string> | A task that represents the asynchronous operation. The task result contains the name of the report file. |
Overrides
ProcessReportAsync(Item, Dictionary<string, object>, CancellationToken)
Processes the report and generates the report content as a stream.
Declaration
public override Task<Stream> ProcessReportAsync(Item item, Dictionary<string, object> moduleData, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Item | item | The item for which the report is being generated. |
| Dictionary<string, object> | moduleData | The data associated with the report generation. |
| CancellationToken | cancellationToken | Token to cancel the asynchronous operation. |
Returns
| Type | Description |
|---|---|
| Task<Stream> | A task that represents the asynchronous operation. The task result contains the report content as a stream. |