Esempio n. 1
0
        private async Task LoadAndShowProfileInfoAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken)
        {
            var tokenState  = (TokenState)stepContext.Values["accessToken"];
            var currentUser = await GraphApiHelper.GetCurrentUserAsync(tokenState, cancellationToken);

            await stepContext.Context.SendActivityAsync($"You are {currentUser.DisplayName}.", cancellationToken : cancellationToken);
        }