Class QuerySubscriptionAggregate
- Namespace
- Cratis.Arc.Queries
- Assembly
- Cratis.Arc.Core.dll
Represents a query-centric view of all active subscriptions for a single query.
public sealed record QuerySubscriptionAggregate : IEquatable<QuerySubscriptionAggregate>
- Inheritance
-
QuerySubscriptionAggregate
- Implements
- Inherited Members
- Extension Methods
Remarks
QueryName matches the queryName property of the generated TypeScript proxy
exactly, enabling cross-stack correlation between frontend cache diagnostics and backend
subscription state regardless of transport mode (multiplexed WebSocket or direct SSE).
Constructors
QuerySubscriptionAggregate()
public QuerySubscriptionAggregate()
Properties
QueryName
Gets the fully qualified query name (e.g. MyApp.Authors.Listing.AllAuthors).
Matches the queryName property on the generated TypeScript proxy.
public required string QueryName { get; init; }
Property Value
Subscribers
Gets all active subscribers for this query, one entry per physical connection/subscription pair.
public required IReadOnlyList<QuerySubscriber> Subscribers { get; init; }
Property Value
TotalSubscriptions
Gets the total number of active subscribers for this query.
public int TotalSubscriptions { get; }
Property Value
Methods
Equals(QuerySubscriptionAggregate?)
public bool Equals(QuerySubscriptionAggregate? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(QuerySubscriptionAggregate?, QuerySubscriptionAggregate?)
public static bool operator ==(QuerySubscriptionAggregate? left, QuerySubscriptionAggregate? right)
Parameters
Returns
operator !=(QuerySubscriptionAggregate?, QuerySubscriptionAggregate?)
public static bool operator !=(QuerySubscriptionAggregate? left, QuerySubscriptionAggregate? right)