예제 #1
0
        private (string FirstName, string LastName) GetRealName(string userId)
        {
            SlackAPI.User user = null;

            var mre = new ManualResetEvent(false);

            _slackClient.GetInfo(response => {
                user = response.user;
                mre.Set();
            }, userId);
            mre.WaitOne();

            return(user.profile.first_name, user.profile.last_name);
        }