.NET API
SessionQuery
Tracon.Abstractions.dllA filter for querying the session list.
public sealed record SessionQuery : IEquatable<SessionQuery>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”SessionQuery()
Section titled “ SessionQuery()”public SessionQuery()Properties
Section titled “Properties”AgentName
Section titled “ AgentName”Fetches only this agent’s sessions.
public string? AgentName { get; init; }Property Value
Section titled “Property Value”OwnerId
Section titled “ OwnerId”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; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”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; }Property Value
Section titled “Property Value”The maximum number of records to fetch.
public int Take { get; init; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”Fetches only this tenant’s sessions.
public string? TenantId { 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(SessionQuery?)
Section titled “ Equals(SessionQuery?)”public bool Equals(SessionQuery? other)Parameters
Section titled “Parameters”other SessionQuery?
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 ==(SessionQuery?, SessionQuery?)
Section titled “ operator ==(SessionQuery?, SessionQuery?)”public static bool operator ==(SessionQuery? left, SessionQuery? right)Parameters
Section titled “Parameters”left SessionQuery?
right SessionQuery?
Returns
Section titled “Returns”operator !=(SessionQuery?, SessionQuery?)
Section titled “ operator !=(SessionQuery?, SessionQuery?)”public static bool operator !=(SessionQuery? left, SessionQuery? right)Parameters
Section titled “Parameters”left SessionQuery?
right SessionQuery?