Struct ExternalCallDecision
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
ReasonstringWhy 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
IsBlocked
Whether the call was refused.
public bool IsBlocked { get; }
Property Value
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
Methods
Block(string)
Refuse the call.
public static ExternalCallDecision Block(string reason)
Parameters
reasonstringWhy — it reaches the workspace as the verbose half of a
Permission deniedrun-time error, so it should say what was refused and on what grounds.