Skip to content

Commit

Permalink
Dependabot-PR-Resolution: Resolve dependabot issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-warren committed Nov 4, 2024
1 parent a9e02c7 commit 5006c28
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Microsoft.Extensions.Options;
using Microsoft.OData.Client;
using Microsoft.OData.Extensions.Client;
using Microsoft.OData;

namespace EMBC.ESS.Utilities.Dynamics
{
Expand All @@ -26,8 +27,9 @@ public void OnClientCreated(ClientCreatedArgs args)
client.EntityParameterSendOption = EntityParameterSendOption.SendOnlySetProperties;
client.Configurations.RequestPipeline.OnEntryStarting((arg) =>
{
// do not send reference properties and null values to Dynamics
arg.Entry.Properties = arg.Entry.Properties.Where((prop) => !prop.Name.StartsWith('_') && prop.Value != null);
arg.Entry.Properties = arg.Entry.Properties
.OfType<ODataProperty>()
.Where(prop => !prop.Name.StartsWith('_') && prop.Value != null);
});
client.BuildingRequest += Client_BuildingRequest;
client.SendingRequest2 += Client_SendingRequest2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.10" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.3" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
<PackageReference Include="shouldly" Version="4.2.1" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.categories" Version="2.0.8" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="IdentityModel" Version="7.0.0" />
<PackageReference Include="IdentityModel.AspNetCore.OAuth2Introspection" Version="6.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.10" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
Expand Down

0 comments on commit 5006c28

Please sign in to comment.