Skip to content

WebhookSaveRequest

Namespace AgentPrism · Assembly AgentPrism.AspNetCore.dll

The request body for saving a webhook subscription.

public sealed record WebhookSaveRequest : IEquatable<WebhookSaveRequest>

objectWebhookSaveRequest

IEquatable<WebhookSaveRequest>

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

This contract has no secret field. An extra secret field sent by the client is not bound and is not written anywhere.

public WebhookSaveRequest()

Whether the subscription is enabled.

public bool Enabled { get; init; }

bool

The names of the subscribed events. See WebhookEvents.

public IReadOnlyList<string>? Events { get; init; }

IReadOnlyList<string>?

Additional headers to add to every request.

public IReadOnlyDictionary<string, string>? Headers { get; init; }

IReadOnlyDictionary<string, string>?

The name of the configuration key from which the signing secret is read. Not the secret itself.

public string? SecretConfigurationKey { get; init; }

string?

The address events are sent to. Only https (or loopback http).

public string? Url { get; init; }

string?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(WebhookSaveRequest? other)

other WebhookSaveRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(WebhookSaveRequest?, WebhookSaveRequest?)

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

left WebhookSaveRequest?

right WebhookSaveRequest?

bool

operator !=(WebhookSaveRequest?, WebhookSaveRequest?)

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

left WebhookSaveRequest?

right WebhookSaveRequest?

bool