Table of Contents

Interface IReportFormatter

Namespace
Excalibur.A3.Governance.Reporting
Assembly
Excalibur.A3.Governance.Abstractions.dll

Formats an EntitlementSnapshot into a byte representation.

public interface IReportFormatter

Remarks

The framework provides a built-in JSON formatter. Consumers can implement this interface for CSV, PDF, or other output formats.

Properties

ContentType

Gets the MIME content type produced by this formatter (e.g., "application/json").

string ContentType { get; }

Property Value

string

The content type string.

Methods

FormatAsync(EntitlementSnapshot, CancellationToken)

Formats the snapshot into a byte array.

Task<byte[]> FormatAsync(EntitlementSnapshot snapshot, CancellationToken cancellationToken)

Parameters

snapshot EntitlementSnapshot

The entitlement snapshot to format.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<byte[]>

The formatted report as a byte array.