コード例 #1
0
 public override Task OnDisconnectedAsync(Exception exception)
 {
     HubConnectionStore.RemoveUserConnection(Context.UserIdentifier, Context.ConnectionId);
     return(base.OnDisconnectedAsync(exception));
 }
コード例 #2
0
 public override Task OnConnectedAsync()
 {
     HubConnectionStore.AddUserConnection(Context.UserIdentifier, Context.ConnectionId);
     return(base.OnConnectedAsync());
 }