Table of Contents

Class DeletionResult

Namespace
OpenShell
Assembly
OpenShell.Sdk.dll

Typed result of a delete. A boolean would hide the pending-cleanup case.

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

Constructors

DeletionResult(DeletionOutcome, string?)

Typed result of a delete. A boolean would hide the pending-cleanup case.

public DeletionResult(DeletionOutcome Outcome, string? ResourceId = null)

Parameters

Outcome DeletionOutcome

What the gateway reported about the deletion.

ResourceId string

The id of the deleted resource, when reported; for a sandbox, pass it as ExpectedSandboxId.

Properties

IsComplete

True when the gateway confirmed the resource is gone.

public bool IsComplete { get; }

Property Value

bool

Outcome

What the gateway reported about the deletion.

public DeletionOutcome Outcome { get; init; }

Property Value

DeletionOutcome

ResourceId

The id of the deleted resource, when reported; for a sandbox, pass it as ExpectedSandboxId.

public string? ResourceId { get; init; }

Property Value

string