Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created November 30, 2018 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wullemsb/e8eacdbe3149946fcfc32cee8df9b55e to your computer and use it in GitHub Desktop.
Save wullemsb/e8eacdbe3149946fcfc32cee8df9b55e to your computer and use it in GitHub Desktop.
chatResult.Users
.Where(x => !string.IsNullOrWhiteSpace(x.ConnectionId))
.ToList()
.ForEach(async user => { await _chatHub.Groups.AddToGroupAsync(user.ConnectionId, chatId); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment