WebhookUrlVerdict
AgentPrism.Core.dllThe result reporting whether a webhook target is safe.
public readonly struct WebhookUrlVerdict : IEquatable<WebhookUrlVerdict>Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”WebhookUrlVerdict(bool, string?, IPAddress?)
Section titled “ WebhookUrlVerdict(bool, string?, IPAddress?)”The result reporting whether a webhook target is safe.
public WebhookUrlVerdict(bool IsAllowed, string? Reason, IPAddress? ResolvedAddress)Parameters
Section titled “Parameters”IsAllowed bool
Whether a request can be sent to the target.
Reason string?
The reason for rejection. null if allowed.
ResolvedAddress IPAddress?
The resolved IP address. The connection is established to this address; the address cannot change between resolution and connection (a DNS rebinding defense).
Properties
Section titled “Properties”IsAllowed
Section titled “ IsAllowed”Whether a request can be sent to the target.
public bool IsAllowed { get; init; }Property Value
Section titled “Property Value”Reason
Section titled “ Reason”The reason for rejection. null if allowed.
public string? Reason { get; init; }Property Value
Section titled “Property Value”ResolvedAddress
Section titled “ ResolvedAddress”The resolved IP address. The connection is established to this address; the address cannot change between resolution and connection (a DNS rebinding defense).
public IPAddress? ResolvedAddress { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Deconstruct(out bool, out string?, out IPAddress?)
Section titled “ Deconstruct(out bool, out string?, out IPAddress?)”public void Deconstruct(out bool IsAllowed, out string? Reason, out IPAddress? ResolvedAddress)Parameters
Section titled “Parameters”IsAllowed bool
Reason string?
ResolvedAddress IPAddress?
Equals(object)
Section titled “ Equals(object)”public override bool Equals(object obj)Parameters
Section titled “Parameters”obj object
Returns
Section titled “Returns”Equals(WebhookUrlVerdict)
Section titled “ Equals(WebhookUrlVerdict)”public bool Equals(WebhookUrlVerdict other)Parameters
Section titled “Parameters”other WebhookUrlVerdict
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(WebhookUrlVerdict, WebhookUrlVerdict)
Section titled “ operator ==(WebhookUrlVerdict, WebhookUrlVerdict)”public static bool operator ==(WebhookUrlVerdict left, WebhookUrlVerdict right)Parameters
Section titled “Parameters”left WebhookUrlVerdict
right WebhookUrlVerdict
Returns
Section titled “Returns”operator !=(WebhookUrlVerdict, WebhookUrlVerdict)
Section titled “ operator !=(WebhookUrlVerdict, WebhookUrlVerdict)”public static bool operator !=(WebhookUrlVerdict left, WebhookUrlVerdict right)Parameters
Section titled “Parameters”left WebhookUrlVerdict
right WebhookUrlVerdict