public void OnNewConnection(Guid connectionId)
 {
     var clientSubscription = new ClientSubscription(connectionId, connection);
     connectionIdToClientSubscription.TryAdd(connectionId, clientSubscription);
     var subscriptionId = queues.Subscriptions.AddSubscription(clientSubscription);
     connectionIdToSubscriptionId.TryAdd(connectionId, subscriptionId);
 }
Exemplo n.º 2
0
        public void OnNewConnection(Guid connectionId)
        {
            var clientSubscription = new ClientSubscription(connectionId, connection);

            connectionIdToClientSubscription.TryAdd(connectionId, clientSubscription);
            var subscriptionId = queues.Subscriptions.AddSubscription(clientSubscription);

            connectionIdToSubscriptionId.TryAdd(connectionId, subscriptionId);
        }