Table of Contents

Class ErasureResult

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Result of an erasure request submission.

public sealed record ErasureResult : IEquatable<ErasureResult>
Inheritance
ErasureResult
Implements
Inherited Members

Properties

BlockingHold

Gets information about any legal hold blocking the request.

public LegalHoldInfo? BlockingHold { get; init; }

Property Value

LegalHoldInfo

EstimatedCompletionTime

Gets the estimated completion time.

public DateTimeOffset? EstimatedCompletionTime { get; init; }

Property Value

DateTimeOffset?

InventorySummary

Gets the data inventory summary discovered for erasure.

public DataInventorySummary? InventorySummary { get; init; }

Property Value

DataInventorySummary

Message

Gets any message associated with the result (e.g., error details).

public string? Message { get; init; }

Property Value

string

RequestId

Gets the tracking ID for this erasure request.

public required Guid RequestId { get; init; }

Property Value

Guid

ScheduledExecutionTime

Gets the scheduled execution time (after grace period).

public DateTimeOffset? ScheduledExecutionTime { get; init; }

Property Value

DateTimeOffset?

Status

Gets the current status of the request.

public required ErasureRequestStatus Status { get; init; }

Property Value

ErasureRequestStatus

Methods

Blocked(Guid, LegalHoldInfo)

Creates a blocked result due to legal hold.

public static ErasureResult Blocked(Guid requestId, LegalHoldInfo hold)

Parameters

requestId Guid
hold LegalHoldInfo

Returns

ErasureResult

Failed(Guid, string)

Creates a failed result.

public static ErasureResult Failed(Guid requestId, string message)

Parameters

requestId Guid
message string

Returns

ErasureResult

Scheduled(Guid, DateTimeOffset, DataInventorySummary?)

Creates a successful result with scheduled status.

public static ErasureResult Scheduled(Guid requestId, DateTimeOffset scheduledTime, DataInventorySummary? inventory = null)

Parameters

requestId Guid
scheduledTime DateTimeOffset
inventory DataInventorySummary

Returns

ErasureResult