private void NotificationIngressChanged() { if (!_registrationsReady) { return; } _queue.Add(_ingressChangeQueueItem); }
/// <summary> /// Called each time a new connection arrives on the /api/dispatch endpoint. /// All of the currently-known Ingress names are queued up to be sent /// to the new target. /// </summary> /// <param name="target">The interface to target a connected client.</param> private void TargetAttached(IDispatchTarget target) { var keys = new List <NamespacedName>(); _cache.GetKeys(keys); if (keys.Count > 0) { _queue.Add(new QueueItem("Target Attached", target)); } }