示例#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());
        }