public override Task OnConnectedAsync() { var connectionId = Context.ConnectionId; _connectionUserRegistry.RegisterOrUpdate(connectionId, string.Empty); Console.WriteLine($"{connectionId} connected."); return(base.OnConnectedAsync()); }
public void AddOrUpdateProxy(string userId, IClientProxy clientProxy) { _connectionRegistry.RegisterOrUpdate(userId, clientProxy); }