diff --git a/csharp-generator-config.json b/csharp-generator-config.json
index 9e04e42..e3b7da9 100644
--- a/csharp-generator-config.json
+++ b/csharp-generator-config.json
@@ -2,7 +2,7 @@
"packageName": "Regula.DocumentReader.WebClient",
"library": "httpclient",
"nullableReferenceTypes": true,
- "targetFramework": "net8.0",
+ "targetFramework": "netstandard2.0",
"typeMappings" : {
"ContainerListListInner": "ResultItem",
"AuthenticityCheckResultListInner": "AuthenticityCheckResultItem"
diff --git a/src/Regula.DocumentReader.WebClient/Client/ApiClient.cs b/src/Regula.DocumentReader.WebClient/Client/ApiClient.cs
index cc2e6d6..8281845 100644
--- a/src/Regula.DocumentReader.WebClient/Client/ApiClient.cs
+++ b/src/Regula.DocumentReader.WebClient/Client/ApiClient.cs
@@ -22,7 +22,6 @@
using System.Threading;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
-using System.Web;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using ErrorEventArgs = Newtonsoft.Json.Serialization.ErrorEventArgs;
diff --git a/src/Regula.DocumentReader.WebClient/Client/ClientUtils.cs b/src/Regula.DocumentReader.WebClient/Client/ClientUtils.cs
index 39244ea..95255fb 100644
--- a/src/Regula.DocumentReader.WebClient/Client/ClientUtils.cs
+++ b/src/Regula.DocumentReader.WebClient/Client/ClientUtils.cs
@@ -100,12 +100,6 @@ public static string ParameterToString(object obj, IReadableConfiguration config
// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8
// For example: 2009-06-15T13:45:30.0000000
return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat);
- if (obj is DateOnly dateOnly)
- // Return a formatted date string - Can be customized with Configuration.DateTimeFormat
- // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o")
- // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8
- // For example: 2009-06-15
- return dateOnly.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat);
if (obj is bool boolean)
return boolean ? "true" : "false";
if (obj is ICollection collection) {
diff --git a/src/Regula.DocumentReader.WebClient/Client/Configuration.cs b/src/Regula.DocumentReader.WebClient/Client/Configuration.cs
index b081a47..af36f12 100644
--- a/src/Regula.DocumentReader.WebClient/Client/Configuration.cs
+++ b/src/Regula.DocumentReader.WebClient/Client/Configuration.cs
@@ -58,11 +58,6 @@ public class Configuration : IReadableConfiguration
string.Format("Error calling {0}: {1}", methodName, response.RawContent),
response.RawContent, response.Headers);
}
- if (status == 0)
- {
- return new ApiException(status,
- string.Format("Error calling {0}: {1}", methodName, response.ErrorText), response.ErrorText);
- }
return null;
};
diff --git a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs
index 0b82201..0ec071c 100644
--- a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs
@@ -56,7 +56,7 @@ protected EncryptedRCLItem() { }
///
/// Base64 encoded data
/*
- [B@337484a1
+ [B@36b75ee4
*/
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
public byte[] EncryptedRCL { get; set; }
diff --git a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs
index ef38f40..6c492a3 100644
--- a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs
@@ -62,7 +62,7 @@ protected EncryptedRCLResult() { }
///
/// Base64 encoded data
/*
- [B@337484a1
+ [B@36b75ee4
*/
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
public byte[] EncryptedRCL { get; set; }
diff --git a/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs b/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs
index c23a634..c62f395 100644
--- a/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs
@@ -56,7 +56,7 @@ protected LicenseItem() { }
///
/// Base64 encoded data
/*
- [B@2e099f41
+ [B@46cb6573
*/
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
public byte[] License { get; set; }
diff --git a/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs b/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs
index 98509a5..bacf0af 100644
--- a/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs
@@ -62,7 +62,7 @@ protected LicenseResult() { }
///
/// Base64 encoded data
/*
- [B@2e099f41
+ [B@46cb6573
*/
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
public byte[] License { get; set; }
diff --git a/src/Regula.DocumentReader.WebClient/Regula.DocumentReader.WebClient.csproj b/src/Regula.DocumentReader.WebClient/Regula.DocumentReader.WebClient.csproj
index 01ca3eb..a0680cd 100644
--- a/src/Regula.DocumentReader.WebClient/Regula.DocumentReader.WebClient.csproj
+++ b/src/Regula.DocumentReader.WebClient/Regula.DocumentReader.WebClient.csproj
@@ -1,7 +1,7 @@
false
- net8.0
+ netstandard2.0
Regula.DocumentReader.WebClient
Alexander Satsukevich
Regula Ltd.