Skip to content

Commit

Permalink
Update api.csproj (#1319)
Browse files Browse the repository at this point in the history
* Update api.csproj

* Update CollectionUtilities.cs

* format
  • Loading branch information
JonasABach authored Oct 17, 2024
1 parent ea7ccf9 commit 6aff06b
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 15 deletions.
4 changes: 1 addition & 3 deletions backend/api/Dtos/STEAProjectDtoBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

using api.Dtos;

using Microsoft.IdentityModel.Tokens;

using api.Helpers;
namespace api.Adapters;

public static class STEAProjectDtoBuilder
Expand Down
1 change: 1 addition & 0 deletions backend/api/Dtos/TimeSeries/TimeSeriesDto.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.ComponentModel.DataAnnotations;

using api.Helpers;
using api.Models;

using Microsoft.IdentityModel.Tokens;
Expand Down
14 changes: 14 additions & 0 deletions backend/api/Helpers/CollectionUtilities.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace api.Helpers
{
public static class CollectionUtilities
{
public static bool IsNullOrEmpty<T>(this IEnumerable<T> enumerable)
{
if (enumerable != null)
{
return !enumerable.Any();
}
return true;
}
}
}
2 changes: 1 addition & 1 deletion backend/api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
options.UseDefaultEndpointResolver(fusionEnvironment);
options.UseDefaultTokenProvider(opts =>
{
opts.ClientId = config["AzureAd:ClientId"];
opts.ClientId = config["AzureAd:ClientId"] ?? throw new ArgumentNullException("AzureAd:ClientId");
opts.ClientSecret = config["AzureAd:ClientSecret"];
});
options.AddFusionRoles();
Expand Down
23 changes: 12 additions & 11 deletions backend/api/api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.8" />
<PackageReference Include="Microsoft.Extensions.Configuration.AzureAppConfiguration" Version="4.5.1" />
<PackageReference Include="Microsoft.Graph" Version="4.34.0" />
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.4" />
<PackageReference Include="Microsoft.Graph" Version="4.36.0" />
<PackageReference Include="Microsoft.Identity.Web" Version="3.0.1" />
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="2.13.4" />
<PackageReference Include="Microsoft.Identity.Web.DownstreamApi" Version="2.13.4" />

<PackageReference Include="Serilog" Version="2.12.0" />
<PackageReference Include="Serilog.Enrichers.Environment" Version="2.2.0" />
<PackageReference Include="Serilog.Extensions.Hosting" Version="5.0.1" />
Expand All @@ -41,14 +42,14 @@
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.7.3" />
<PackageReference Include="ClosedXML" Version="0.102.3" />
<PackageReference Include="Fusion.Infrastructure.Database" Version="7.0.0" />
<PackageReference Include="Fusion.Integration" Version="7.0.4" />
<PackageReference Include="Fusion.Integration.Abstractions" Version="7.0.4" />
<PackageReference Include="Fusion.Integration.Context" Version="7.0.4" />
<PackageReference Include="Fusion.Integration.Context.Abstractions" Version="7.0.4" />
<PackageReference Include="Fusion.Integration.Core" Version="7.0.4" />
<PackageReference Include="Fusion.Integration.Meeting" Version="7.0.4" />
<PackageReference Include="Fusion.Integration.Org.Abstractions" Version="7.0.4" />
<PackageReference Include="Fusion.Integration.Roles" Version="7.0.4" />
<PackageReference Include="Fusion.Integration.Roles.Abstractions" Version="7.0.4" />
<PackageReference Include="Fusion.Integration" Version="8.0.8" />
<PackageReference Include="Fusion.Integration.Abstractions" Version="8.0.7" />
<PackageReference Include="Fusion.Integration.Context" Version="8.0.7" />
<PackageReference Include="Fusion.Integration.Context.Abstractions" Version="8.0.7" />
<PackageReference Include="Fusion.Integration.Core" Version="8.0.7" />
<PackageReference Include="Fusion.Integration.Meeting" Version="8.0.7" />
<PackageReference Include="Fusion.Integration.Org.Abstractions" Version="8.0.7" />
<PackageReference Include="Fusion.Integration.Roles" Version="8.0.7" />
<PackageReference Include="Fusion.Integration.Roles.Abstractions" Version="8.0.7" />
</ItemGroup>
</Project>

0 comments on commit 6aff06b

Please sign in to comment.