Skip to content

Commit

Permalink
Merge pull request #164 from Azure-Samples/jmprieur/IdWeb2.12.1
Browse files Browse the repository at this point in the history
Update to Id.Web 2.12.2
  • Loading branch information
jennyf19 authored Jun 15, 2023
2 parents 0dc97d7 + ae2cc82 commit 02694f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions 1-Call-MSGraph/daemon-console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ static async Task Main(string[] _)
{
GraphServiceClient graphServiceClient = serviceProvider.GetRequiredService<GraphServiceClient>();
var users = await graphServiceClient.Users
.Request()
.WithAppOnly()
.GetAsync();
Console.WriteLine($"{users.Count} users");
.GetAsync(r => r.Options.WithAppOnly());
Console.WriteLine($"{users.Value.Count} users");
}
catch (ServiceException e)
{
Expand Down
2 changes: 1 addition & 1 deletion 1-Call-MSGraph/daemon-console/daemon-console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="6.0.1" />
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="2.8.0" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="2.12.2" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 02694f3

Please sign in to comment.