Skip to content

Commit

Permalink
Fixed checking for 200 response code
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanoord committed Oct 2, 2023
1 parent 42f472a commit 104d394
Show file tree
Hide file tree
Showing 2 changed files with 13,121 additions and 10,670 deletions.
8 changes: 7 additions & 1 deletion BccCode.Tripletex.Client/BccCode.Tripletex.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<Configurations>Debug;Release;Generate</Configurations>
</PropertyGroup>

<ItemGroup>
<None Remove="TripletexClientGenerated.cs~RF1b87aae1.TMP" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" />
Expand Down Expand Up @@ -201,8 +205,10 @@
<Exec WorkingDirectory="$(ProjectDir)" Command="powershell -Command &quot;Start-Sleep -Seconds 1; $callback = { param($match); ' ' + $match.Groups[1].Value + 'Entitlement' + $match.Groups[2].Value + 'Async('; }; (Get-Content TripletexClientGenerated.cs) | ForEach-Object { [regex]::Replace($_, ' ([A-Za-z]+)EntitlementEntitlement([A-Za-z]+)Async\(', $callback ) } | Set-Content TripletexClientGenerated.cs&quot;" />

<Exec WorkingDirectory="$(ProjectDir)" Command="powershell -Command &quot;Start-Sleep -Seconds 1; $callback = { param($match); ' ' + $match.Groups[1].Value + 'Inventor' + $match.Groups[2].Value + 'Async('; }; (Get-Content TripletexClientGenerated.cs) | ForEach-Object { [regex]::Replace($_, ' ([A-Za-z]+)InventoryInventor([A-Za-z]+)Async\(', $callback ) } | Set-Content TripletexClientGenerated.cs&quot;" />


<Exec WorkingDirectory="$(ProjectDir)" Command="powershell -Command &quot;Start-Sleep -Seconds 1; $callback = { param($match); '(response_.IsSuccessStatusCode)'; }; (Get-Content TripletexClientGenerated.cs) | ForEach-Object { [regex]::Replace($_, '\(status_ == 200\)', $callback ) } | Set-Content TripletexClientGenerated.cs&quot;" />


<!--Exec WorkingDirectory="$(ProjectDir)" Command="powershell -Command &quot;Start-Sleep -Seconds 1; $callback = { param($match); ' ' + $match.Groups[1].Value + $match.Groups[2].Value + 'Async('; }; (Get-Content TripletexClientGenerated.cs) | ForEach-Object { [regex]::Replace($_, ' ([A-Za-z]+)(EmployeeEmployment)([A-Za-z]+)Async\(', $callback ) } | Set-Content TripletexClientGenerated.cs&quot;" />
<Exec WorkingDirectory="$(ProjectDir)" Command="powershell -Command &quot;Start-Sleep -Seconds 1; $callback = { param($match); ' ' + $match.Groups[1].Value + $match.Groups[2].Value + 'Async('; }; (Get-Content TripletexClientGenerated.cs) | ForEach-Object { [regex]::Replace($_, ' ([A-Za-z]+)(EmployeeEmployment)([A-Za-z]+)Async\(', $callback ) } | Set-Content TripletexClientGenerated.cs&quot;" /-->

Expand Down
Loading

0 comments on commit 104d394

Please sign in to comment.