Exemplo n.º 1
0
        public override Task OnConnectedAsync()
        {
            var connectionId = Context.ConnectionId;

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

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