Import dotnetDBF for error handling.

This commit is contained in:
Patrick Fic
2022-02-11 15:06:05 -08:00
parent 991ad38839
commit f32c149bae
75 changed files with 5585 additions and 7 deletions

View File

@@ -348,9 +348,6 @@
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<PackageReference Include="DotNetDBF">
<Version>6.0.0.3</Version>
</PackageReference>
<PackageReference Include="FileHelpers">
<Version>3.5.1</Version>
</PackageReference>
@@ -537,6 +534,16 @@
<Version>2.5.1</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DotNetDBF.Enumerable\DotNetDBF.Enumerable.csproj">
<Project>{83e3893b-e266-475f-baa4-0bfa8393cdcf}</Project>
<Name>DotNetDBF.Enumerable</Name>
</ProjectReference>
<ProjectReference Include="..\dotnetdbf\DotNetDBF.csproj">
<Project>{9508821b-3b85-4088-8076-d0f0af00db55}</Project>
<Name>DotNetDBF</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="AfterBuild" Condition=" '$(Configuration)' == 'Release'">
<GetAssemblyIdentity AssemblyFiles="$(TargetPath)">

View File

@@ -56,4 +56,6 @@ CA63387A44437B55CD283AB4A2CB92385F1321E7 ImEXOnlinePartner-1.0.28-full.nupkg 550
36869986F57C7F0E25610A10F43C740DAC7639A2 ImEXOnlinePartner-1.0.29-delta.nupkg 56217
6F104EF819C1791FD334CE21CEE9C6B8DB3FC105 ImEXOnlinePartner-1.0.29-full.nupkg 5510931
D441404BE86E0A676462DD367D4355894C2FFDBA ImEXOnlinePartner-1.0.30-delta.nupkg 62664
66963D1624BD0C662CDF6E93B87D9AE4FA8073FF ImEXOnlinePartner-1.0.30-full.nupkg 5512346
66963D1624BD0C662CDF6E93B87D9AE4FA8073FF ImEXOnlinePartner-1.0.30-full.nupkg 5512346
8F1739F9B7C202F7E2453E7D5027F7422637D206 ImEXOnlinePartner-1.0.31-delta.nupkg 152092
6B3D3A0DD81D6F0C302ACE42DEDDDFC11270DD22 ImEXOnlinePartner-1.0.31-full.nupkg 5609086

View File

@@ -1077,8 +1077,8 @@ namespace BodyshopPartner.Utils.Decoder
for (int i = 0; i < reader.RecordCount; i++)
{
var readValues = reader.NextRecord();
logger.Debug($"Reading line {i +1}");
var readValues = reader.NextRecord(false);
dynamic lin = new JObject();
//Mising est_seq
@@ -1165,7 +1165,12 @@ namespace BodyshopPartner.Utils.Decoder
}
catch (IOException ex)
{
logger.Trace(ex, "Unable to open LIN file. Retrying. ");
logger.Error(ex, "Unable to open LIN file. Retrying. ");
retryNumber++;
Thread.Sleep(retrySleep);
}catch(Exception Ex)
{
logger.Error(Ex, "Unable to open LIN file. Retrying. Unknown Exception ");
retryNumber++;
Thread.Sleep(retrySleep);
}