Exemplo n.º 1
0
    private void NotificationIngressChanged()
    {
        if (!_registrationsReady)
        {
            return;
        }

        _queue.Add(_ingressChangeQueueItem);
    }
Exemplo n.º 2
0
    /// <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));
        }
    }