PouryaKit.Reporting.Module
0.1.0-preview.1
See the version list below for details.
dotnet add package PouryaKit.Reporting.Module --version 0.1.0-preview.1
NuGet\Install-Package PouryaKit.Reporting.Module -Version 0.1.0-preview.1
<PackageReference Include="PouryaKit.Reporting.Module" Version="0.1.0-preview.1" />
<PackageVersion Include="PouryaKit.Reporting.Module" Version="0.1.0-preview.1" />
<PackageReference Include="PouryaKit.Reporting.Module" />
paket add PouryaKit.Reporting.Module --version 0.1.0-preview.1
#r "nuget: PouryaKit.Reporting.Module, 0.1.0-preview.1"
#:package PouryaKit.Reporting.Module@0.1.0-preview.1
#addin nuget:?package=PouryaKit.Reporting.Module&version=0.1.0-preview.1&prerelease
#tool nuget:?package=PouryaKit.Reporting.Module&version=0.1.0-preview.1&prerelease

PouryaKit.Reporting.Module
The Kit's report Module, a Module shipped as a package. A Host adds it once beside its own Modules. An Actor requests a report job over HTTP, and the Module stores the job in its own schema, generates the file in the background, stores it in the Host's one file storage provider, and serves the job's state and a time-limited download link to its requester. A recurring retention removes expired jobs and their files.
Install
dotnet add package PouryaKit.Reporting.Module --prerelease
When to use it
- An Actor requests a report that takes a while to build, and downloads it when it is ready.
- You add report kinds to a Host by implementing the two ports.
- You need to know what a stale claim, a late settlement, another Actor or tenant, or the retention does to a job.
It renders with PouryaKit.Reporting and stores through PouryaKit.Storage, so the Host composes one provider, such as PouryaKit.Storage.S3.
Quick start
Add the Module to the Host and implement its two ports, as the Proving Sample does. The Host also registers an IActorPermissions of PouryaKit.Security and one file storage provider, or its build fails:
modules.Add<ReportModule>();
builder.Services.AddSingleton<IReportRequestAuthorizer, SalesReports>();
builder.Services.AddSingleton<IReportLayouts, SalesReports>();
The first port decides who may request a kind, with which parameters:
public Task<bool> MayRequestAsync(
OperationContext context,
ReportRequest request,
CancellationToken cancellationToken
)
{
return Task.FromResult(
context.Actor.Kind == ActorKind.Person
&& context.Tenant is not null
&& request.Kind == Kind
&& MonthOf(request) is not null
);
}
What you get
- A job stored with its requester and tenant.
- Generation by attempts that each claim the job, so a stale claim can be taken over.
- A job served within its tenant to its requester, or an Actor the Host grants the tenant's jobs.
- A retention that removes expired jobs and their files.
The Module stores over one fixed connection string name and cannot be told another, since a Composition Root takes no parameters. Give the Host's database that name and keep the message store on the same database (Composing it).
The file is rendered in memory inside the attempt's Unit of Work, so keep a kind to what fits there.
Learn more
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- PouryaKit.Messaging.Wolverine.EFCore (>= 0.1.0-preview.1)
- PouryaKit.Modularity (>= 0.1.0-preview.1)
- PouryaKit.Persistence.Dapper (>= 0.1.0-preview.1)
- PouryaKit.Persistence.Postgres (>= 0.1.0-preview.1)
- PouryaKit.Reporting (>= 0.1.0-preview.1)
- PouryaKit.Security (>= 0.1.0-preview.1)
- PouryaKit.Storage (>= 0.1.0-preview.1)
- PouryaKit.Validation (>= 0.1.0-preview.1)
- PouryaKit.Web (>= 0.1.0-preview.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.2 | 71 | 11/1/2026 |
| 0.1.0-preview.1 | 71 | 10/31/2026 |
| 0.1.0-preview.0.28 | 73 | 10/26/2026 |