private void GetUsersFromSlack() { if (client == null) { return; } client.GetUserList((response) => { SetStatus("Receiving user list..."); Dispatcher.BeginInvoke(DispatcherPriority.Input, new Action(() => { AddUsers(response); })); }); }