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);
 }
Example #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);
        }