Table of Contents

Struct ExternalCallDecision

Namespace
RDCore.SDK.Runtime.Abstract.Execution
Assembly
RDCore.SDK.dll

What an IExternalCallInterceptor decided about a call.

public readonly record struct ExternalCallDecision : IEquatable<ExternalCallDecision>
Implements
Inherited Members

Constructors

ExternalCallDecision(string?)

What an IExternalCallInterceptor decided about a call.

public ExternalCallDecision(string? Reason)

Parameters

Reason string

Why the call was refused, in words a person reading a diagnostic needs — null when it was not refused.

Properties

Allow

Let the call through.

public static ExternalCallDecision Allow { get; }

Property Value

ExternalCallDecision

IsBlocked

Whether the call was refused.

public bool IsBlocked { get; }

Property Value

bool

Reason

Why the call was refused, in words a person reading a diagnostic needs — null when it was not refused.

public string? Reason { get; init; }

Property Value

string

Methods

Block(string)

Refuse the call.

public static ExternalCallDecision Block(string reason)

Parameters

reason string

Why — it reaches the workspace as the verbose half of a Permission denied run-time error, so it should say what was refused and on what grounds.

Returns

ExternalCallDecision