Created
May 7, 2020 23:44
-
-
Save cmatskas/6c4eec9d7a7686a917c3273c0191beb3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GraphHelper | |
{ | |
private static GraphServiceClient graphClient; | |
public static void Initialize(IAuthenticationProvider authProvider) | |
{ | |
graphClient = new GraphServiceClient(authProvider); | |
} | |
public static async Task<IEnumerable<User>> GetUsersAsync() | |
{ | |
// GET /users | |
return await graphClient.Users.Request().GetAsync(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment