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

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

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