예제 #1
0
 public override Task OnConnected()
 {
     var client = new MyUserType();
     client.ConnectionId = Guid.Parse(Context.ConnectionId);
     ConnectedUsers.TryAdd(client.ConnectionId, client);
     PushIdentifier(client.ConnectionId);
     return base.OnConnected();
 }
예제 #2
0
        public override Task OnConnected()
        {
            var client = new MyUserType();

            client.ConnectionId = Guid.Parse(Context.ConnectionId);
            ConnectedUsers.TryAdd(client.ConnectionId, client);
            PushIdentifier(client.ConnectionId);
            return(base.OnConnected());
        }