stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
20
src/__Libraries/StellaOps.AuditPack/Services/ExportResult.cs
Normal file
20
src/__Libraries/StellaOps.AuditPack/Services/ExportResult.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace StellaOps.AuditPack.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Result of audit pack export.
|
||||
/// </summary>
|
||||
public sealed record ExportResult
|
||||
{
|
||||
public bool Success { get; init; }
|
||||
public byte[]? Data { get; init; }
|
||||
public string? ContentType { get; init; }
|
||||
public string? Filename { get; init; }
|
||||
public long SizeBytes { get; init; }
|
||||
public string? Error { get; init; }
|
||||
|
||||
public static ExportResult Failed(string error) => new()
|
||||
{
|
||||
Success = false,
|
||||
Error = error
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user