Skip to content

Commit c2e3e49

Browse files
calin-lupas_dsamcapscalin-lupas_dsamcaps
authored andcommitted
Update package versions and streamline async execution
Updated NuGet package references in `DevExcelerateApi.csproj` and `DevExcelerateApp.csproj` to newer versions for `Microsoft.Azure.Cosmos`, `Microsoft.IdentityModel.JsonWebTokens`, `System.IdentityModel.Tokens.Jwt`, and `Microsoft.Data.SqlClient`. Refactored `Program.cs` to simplify asynchronous execution by directly awaiting `app.RunAsync()` without using an intermediate `Task` variable.
1 parent cb79f94 commit c2e3e49

3 files changed

Lines changed: 7 additions & 10 deletions

File tree

src/DevExcelerateApi/DevExcelerateApi.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
<PackageReference Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.4.0" />
1111
<PackageReference Include="Azure.Identity" Version="1.13.2" />
1212
<PackageReference Include="Azure.Security.KeyVault.Keys" Version="4.7.0" />
13-
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.48.0" />
14-
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.8.0" />
13+
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.49.0" />
14+
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.9.0" />
1515
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
1616
<PackageReference Include="Octokit" Version="14.0.0" />
1717
<PackageReference Include="Octokit.Webhooks.AspNetCore" Version="2.4.1" />
18-
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.8.0" />
18+
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.9.0" />
1919
<PackageReference Include="YamlDotNet" Version="16.3.0" />
20-
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.0.1" />
20+
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.0.2" />
2121
<PackageReference Include="Dapper" Version="2.1.66" />
2222
</ItemGroup>
2323

src/DevExcelerateApi/Program.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ public static async Task Main(string[] args)
7878
.RequireAuthorization();
7979

8080
// Start the service
81-
Task runTask = app.RunAsync();
82-
83-
// Wait for the service to complete.
84-
await runTask;
81+
await app.RunAsync();
8582
}
8683
}
8784
}

src/DevExcelerateApp/DevExcelerateApp.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
<PackageReference Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.4.0" />
1111
<PackageReference Include="Azure.Identity" Version="1.13.2" />
1212
<PackageReference Include="Azure.Security.KeyVault.Keys" Version="4.7.0" />
13-
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.8.0" />
13+
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.9.0" />
1414
<PackageReference Include="Octokit" Version="14.0.0" />
1515
<PackageReference Include="Octokit.Webhooks.AspNetCore" Version="2.4.1" />
16-
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.8.0" />
16+
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.9.0" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

0 commit comments

Comments
 (0)