Skip to main content

QueuedConnectionHelper

A static class in Root.Township, Alta.Networking.Internal.

Tracks all queued connection receivers so code can tell when every queued message has been handled.

Fields​

1 private and internal field
MemberWhat it is
private static HashSet<QueuedConnectionReceiver> receiversThe tracked receivers.

Properties​

MemberWhat it is
static bool IsThereQueuedMessages { get; }True if any tracked receiver still has queued messages.

Events​

MemberWhat it is
static event Action FinishedAllQueuesRaised when a receiver finishes its queue and no tracked receiver has messages left.

Methods​

MemberWhat it is
static void Deregister(QueuedConnectionReceiver receiver)Stops tracking a receiver and checks if all queues are now empty.
static void Register(QueuedConnectionReceiver receiver)Starts tracking a receiver and listens for its queue finishing.
1 private and internal method
MemberWhat it is
private static void ReceiverFinished()Raises FinishedAllQueues if no receiver has a queue left.