Ejemplo n.º 1
0
        public override Task OnReconnected()
        {
            var connection = LkHubConnection.Create(Context.ConnectionId, Context.User.Identity.Name);

            Connections.AddIfNotExists(Context.ConnectionId, connection);
            return(base.OnReconnected());
        }
Ejemplo n.º 2
0
 public override Task OnConnected()
 {
     Connections.Add(Context.ConnectionId, LkHubConnection.Create(Context.ConnectionId, Context.User.Identity.Name));
     SendAssets();
     return(base.OnConnected());
 }