Table of Contents

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

original SessionWebhook

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Events

Gets or sets the types of session events that trigger the webhook.

public IEnumerable<SessionEventType>? Events { get; set; }

Property Value

IEnumerable<SessionEventType>

Headers

Gets or sets the headers included in the webhook HTTP requests.

public IDictionary<string, string>? Headers { get; set; }

Property Value

IDictionary<string, string>

Method

Gets or sets the HTTP method used for the webhook (e.g., GET, POST).

public SessionWebhookMethod? Method { get; set; }

Property Value

SessionWebhookMethod?

Url

Gets or sets the URL to which the webhook will send HTTP requests.

public required string Url { get; set; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(SessionWebhook?)

public virtual bool Equals(SessionWebhook? other)

Parameters

other SessionWebhook

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SessionWebhook?, SessionWebhook?)

public static bool operator ==(SessionWebhook? left, SessionWebhook? right)

Parameters

left SessionWebhook
right SessionWebhook

Returns

bool

operator !=(SessionWebhook?, SessionWebhook?)

public static bool operator !=(SessionWebhook? left, SessionWebhook? right)

Parameters

left SessionWebhook
right SessionWebhook

Returns

bool