Enhance async operations and update packages
- Updated
Program.cs
to support asynchronous operations more effectively by replacingapp.Run();
withawait app.RunAsync().ConfigureAwait(false);
and updatingLog.CloseAndFlush();
toawait Log.CloseAndFlushAsync().ConfigureAwait(false);
for better scalability and resource management. - Modified
SystemRoleManagementService.cs
to include changes in the constructor and theGetForProjectAsync
method, notably adding theId
property toSystemRoleModel
instantiation for enhanced data structure and context. - Updated various NuGet package versions in
Directory.Packages.props
includingAzure.Identity
,FluentValidation
, and more, aiming for improved stability, performance, and security. - Adjusted
SystemRoleModel.cs
to include anint Id
property, reflecting a model change for better system role identification and data management. - Made adjustments in
Infrastructure.Tests.csproj
to updatexunit.runner.visualstudio
package reference withPrivateAssets
andIncludeAssets
tags for better test dependency management.