Class QuerySubscriptionClientInfo

Namespace
Cratis.Arc.Queries
Assembly
Cratis.Arc.Core.dll

Represents client information for a query subscription.

public sealed record QuerySubscriptionClientInfo : IEquatable<QuerySubscriptionClientInfo>
Inheritance
QuerySubscriptionClientInfo
Implements
Inherited Members
Extension Methods

Constructors

QuerySubscriptionClientInfo()

public QuerySubscriptionClientInfo()

Properties

Protocol

Gets the connection protocol (WebSocket or SSE).

public required string Protocol { get; init; }

Property Value

string

RemoteIpAddress

Gets the remote IP address.

public string? RemoteIpAddress { get; init; }

Property Value

string

UserAgent

Gets the user agent string.

public string? UserAgent { get; init; }

Property Value

string

UserId

Gets the user identity (if authenticated).

public string? UserId { get; init; }

Property Value

string

Methods

Equals(QuerySubscriptionClientInfo?)

public bool Equals(QuerySubscriptionClientInfo? other)

Parameters

other QuerySubscriptionClientInfo

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(QuerySubscriptionClientInfo?, QuerySubscriptionClientInfo?)

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

Parameters

left QuerySubscriptionClientInfo
right QuerySubscriptionClientInfo

Returns

bool

operator !=(QuerySubscriptionClientInfo?, QuerySubscriptionClientInfo?)

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

Parameters

left QuerySubscriptionClientInfo
right QuerySubscriptionClientInfo

Returns

bool