It is a basic Menu Driven Console Application using .NET & Microsoft Graph. First Authorization of client takes place. (A code will be given and the user need to log in their Microsoft account through https://microsoft.com/devicelogin ) After accepting the conditions close the sign in page. Then a greeting displaying your Name, Id and Mail ID displays on console. A menu appears below and choose the options accordingly to perform operations with it.
- Option 0 : To exit from the application.
- Option 1 : To Display access token.
- Option 2 : To List users inbox (up to 25 inbox mails) in descending order of Receiving email.
- Option 3 : To send email to your self.
- Option 4 : To make a graph call - Here Calendar View is used
- Any other key to get a default message.
For The Application : I followed Microsoft Documentation on Build .NET apps with Microsoft Graph and other documentations of MSGraph. My App is registered with Azure Active Directory
The Working of the App is given below : (Login through Microsoft account only for the app to work properly)
Video Walkthrough of My Console Application
https://github.com/Vedshruti-11/.NETConsoleAppWithMSGraph
Vedshruti-11