Example #1
0
        public override Task OnConnectedAsync()
        {
            var connectionId = Context.ConnectionId;

            _connectionUserRegistry.RegisterOrUpdate(connectionId, string.Empty);
            Console.WriteLine($"{connectionId} connected.");

            return(base.OnConnectedAsync());
        }
Example #2
0
 public void AddOrUpdateProxy(string userId, IClientProxy clientProxy)
 {
     _connectionRegistry.RegisterOrUpdate(userId, clientProxy);
 }