Skip to content
Tracon

SessionQuery

Namespace Tracon · Assembly Tracon.Abstractions.dll

A filter for querying the session list.

public sealed record SessionQuery : IEquatable<SessionQuery>

objectSessionQuery

IEquatable<SessionQuery>

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

public SessionQuery()

Fetches only this agent’s sessions.

public string? AgentName { get; init; }

string?

Fetches only this owner’s sessions. null applies no owner filter at all and lists the whole tenant, which is what a management listing wants.

public string? OwnerId { get; init; }

string?

The filter is applied BEFORE SessionQuery.Skip and SessionQuery.Take. A store that filters the page it already fetched returns short pages, empty pages, and — worst — lets a caller infer how many sessions OTHER users hold from the gaps. Paging runs over the already-narrowed set, so the paging contract stays intact and no count leaks.

A row whose SessionRecord.OwnerId is null is not matched by any owner filter. Unowned rows are not “everyone’s”; they are nobody’s.

The number of records to skip.

public int Skip { get; init; }

int

The maximum number of records to fetch.

public int Take { get; init; }

int

Fetches only this tenant’s sessions.

public string? TenantId { get; init; }

string?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(SessionQuery? other)

other SessionQuery?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(SessionQuery?, SessionQuery?)

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

left SessionQuery?

right SessionQuery?

bool

operator !=(SessionQuery?, SessionQuery?)

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

left SessionQuery?

right SessionQuery?

bool