Пример #1
0
        public static async Task <bool> TrySendMailAsync()
        {
            var graphClient = AuthenticationHelper.GetAuthenticatedClient();
            var currentUser = await graphClient.Me.Request().GetAsync();

            return(await UserSnippets.SendMessageAsync(
                       STORY_DATA_IDENTIFIER,
                       DEFAULT_MESSAGE_BODY,
                       currentUser.UserPrincipalName
                       ));
        }