Skip to content

WebhookUrlVerdict

Namespace AgentPrism · Assembly AgentPrism.Core.dll

The result reporting whether a webhook target is safe.

public readonly struct WebhookUrlVerdict : IEquatable<WebhookUrlVerdict>

IEquatable<WebhookUrlVerdict>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

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)

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).

Whether a request can be sent to the target.

public bool IsAllowed { get; init; }

bool

The reason for rejection. null if allowed.

public string? Reason { get; init; }

string?

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; }

IPAddress?

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)

IsAllowed bool

Reason string?

ResolvedAddress IPAddress?

public override bool Equals(object obj)

obj object

bool

public bool Equals(WebhookUrlVerdict other)

other WebhookUrlVerdict

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(WebhookUrlVerdict, WebhookUrlVerdict)

Section titled “ operator ==(WebhookUrlVerdict, WebhookUrlVerdict)”
public static bool operator ==(WebhookUrlVerdict left, WebhookUrlVerdict right)

left WebhookUrlVerdict

right WebhookUrlVerdict

bool

operator !=(WebhookUrlVerdict, WebhookUrlVerdict)

Section titled “ operator !=(WebhookUrlVerdict, WebhookUrlVerdict)”
public static bool operator !=(WebhookUrlVerdict left, WebhookUrlVerdict right)

left WebhookUrlVerdict

right WebhookUrlVerdict

bool