Class SessionWebhook
- Namespace
- XENBIT.ResQueServe.Abstractions.Models
- Assembly
- RQS.Abstractions.dll
Represents a webhook for registering HTTP callbacks to handle managed session events.
public record SessionWebhook : IEquatable<SessionWebhook>
- Inheritance
-
SessionWebhook
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
SessionWebhook()
public SessionWebhook()
SessionWebhook(SessionWebhook)
[SetsRequiredMembers]
protected SessionWebhook(SessionWebhook original)
Parameters
originalSessionWebhook
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Events
Gets or sets the types of session events that trigger the webhook.
public IEnumerable<SessionEventType>? Events { get; set; }
Property Value
Headers
Gets or sets the headers included in the webhook HTTP requests.
public IDictionary<string, string>? Headers { get; set; }
Property Value
Method
Gets or sets the HTTP method used for the webhook (e.g., GET, POST).
public SessionWebhookMethod? Method { get; set; }
Property Value
Url
Gets or sets the URL to which the webhook will send HTTP requests.
public required string Url { get; set; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(SessionWebhook?)
public virtual bool Equals(SessionWebhook? other)
Parameters
otherSessionWebhook
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(SessionWebhook?, SessionWebhook?)
public static bool operator ==(SessionWebhook? left, SessionWebhook? right)
Parameters
leftSessionWebhookrightSessionWebhook
Returns
operator !=(SessionWebhook?, SessionWebhook?)
public static bool operator !=(SessionWebhook? left, SessionWebhook? right)
Parameters
leftSessionWebhookrightSessionWebhook