public override Task OnConnected() { var profileName = Context.QueryString["profileName"]; _connections.Register(Context.ConnectionId, profileName); System.Diagnostics.Debug.WriteLine(string.Format("Connection established: ProfileName={0}, ConnectionId={1}", profileName, Context.ConnectionId)); return(base.OnConnected()); }