WebhookSaveRequest
AgentPrism.AspNetCore.dllThe request body for saving a webhook subscription.
public sealed record WebhookSaveRequest : IEquatable<WebhookSaveRequest>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<WebhookSaveRequest>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”This contract has no secret field. An extra
secret field sent by the client is not bound and is not written
anywhere.
Constructors
Section titled “Constructors”WebhookSaveRequest()
Section titled “ WebhookSaveRequest()”public WebhookSaveRequest()Properties
Section titled “Properties”Enabled
Section titled “ Enabled”Whether the subscription is enabled.
public bool Enabled { get; init; }Property Value
Section titled “Property Value”Events
Section titled “ Events”The names of the subscribed events. See WebhookEvents.
public IReadOnlyList<string>? Events { get; init; }Property Value
Section titled “Property Value”Headers
Section titled “ Headers”Additional headers to add to every request.
public IReadOnlyDictionary<string, string>? Headers { get; init; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>?
SecretConfigurationKey
Section titled “ SecretConfigurationKey”The name of the configuration key from which the signing secret is read. Not the secret itself.
public string? SecretConfigurationKey { get; init; }Property Value
Section titled “Property Value”The address events are sent to. Only https (or loopback http).
public string? Url { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(WebhookSaveRequest?)
Section titled “ Equals(WebhookSaveRequest?)”public bool Equals(WebhookSaveRequest? other)Parameters
Section titled “Parameters”other WebhookSaveRequest?
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 ==(WebhookSaveRequest?, WebhookSaveRequest?)
Section titled “ operator ==(WebhookSaveRequest?, WebhookSaveRequest?)”public static bool operator ==(WebhookSaveRequest? left, WebhookSaveRequest? right)Parameters
Section titled “Parameters”left WebhookSaveRequest?
right WebhookSaveRequest?
Returns
Section titled “Returns”operator !=(WebhookSaveRequest?, WebhookSaveRequest?)
Section titled “ operator !=(WebhookSaveRequest?, WebhookSaveRequest?)”public static bool operator !=(WebhookSaveRequest? left, WebhookSaveRequest? right)Parameters
Section titled “Parameters”left WebhookSaveRequest?
right WebhookSaveRequest?