diff --git a/MConnectSDK/MConnectClient.cs b/MConnectSDK/MConnectClient.cs index ae182f4..a094382 100644 --- a/MConnectSDK/MConnectClient.cs +++ b/MConnectSDK/MConnectClient.cs @@ -1817,11 +1817,12 @@ namespace MConnectSDK } catch (Exception exc) { - string excSel = JsonConvert.SerializeObject(exc); - resp.error = excSel; + // la loggo al posto di "embeddarla + Log.Instance.Error(exc, "Sollevata eccezione in TryUpLoadFile: "); + // rilancio eccezione a monte... + throw; } - if (resp != null) { // creo un nuovo result x embeddare il payload del risultato del caricamento file... @@ -1841,10 +1842,9 @@ namespace MConnectSDK } else { - risultato.error = new ErrorResult() { - code = 400, + code = 000, message = resp.error }; } diff --git a/MConnectSDK/MConnectSDK.csproj b/MConnectSDK/MConnectSDK.csproj index 1935ca6..ff30e81 100644 --- a/MConnectSDK/MConnectSDK.csproj +++ b/MConnectSDK/MConnectSDK.csproj @@ -1,6 +1,5 @@  - Debug @@ -34,9 +33,6 @@ 4 - - ..\packages\Costura.Fody.3.3.3\lib\net40\Costura.dll - ..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll @@ -84,12 +80,4 @@ - - - Questo progetto fa riferimento a uno o più pacchetti NuGet che non sono presenti in questo computer. Usare lo strumento di ripristino dei pacchetti NuGet per scaricarli. Per altre informazioni, vedere http://go.microsoft.com/fwlink/?LinkID=322105. Il file mancante è {0}. - - - - - \ No newline at end of file diff --git a/MConnectSDK/Utils.cs b/MConnectSDK/Utils.cs index c3eaa21..9e3501f 100644 --- a/MConnectSDK/Utils.cs +++ b/MConnectSDK/Utils.cs @@ -101,7 +101,7 @@ namespace MConnectSDK public static async Task getPageAsync(string pageURL) { string currUrl = pageURL; - if(currUrl.IndexOf("token")>=0) + if (currUrl.IndexOf("token") >= 0) { currUrl = currUrl.Substring(0, currUrl.IndexOf("token")); } @@ -259,7 +259,7 @@ namespace MConnectSDK { using (var client = new HttpClient()) { - // imposto a 15 minutiupload timeout! + // imposto a 15 minutiupload timeout! TimeSpan ts = new TimeSpan(0, 15, 0); client.Timeout = ts; client.MaxResponseContentBufferSize = fileContent.Length + 1024; diff --git a/MConnectSDK/packages.config b/MConnectSDK/packages.config index 72b8dd6..53daa1b 100644 --- a/MConnectSDK/packages.config +++ b/MConnectSDK/packages.config @@ -1,7 +1,5 @@  - - diff --git a/Rilasci/MCC_1.1.1904.97_Release.zip b/Rilasci/MCC_1.1.1904.101_Debug.zip similarity index 56% rename from Rilasci/MCC_1.1.1904.97_Release.zip rename to Rilasci/MCC_1.1.1904.101_Debug.zip index 150d1d9..4b90b30 100644 Binary files a/Rilasci/MCC_1.1.1904.97_Release.zip and b/Rilasci/MCC_1.1.1904.101_Debug.zip differ diff --git a/Rilasci/MCC_1.1.1904.97_Debug.zip b/Rilasci/MCC_1.1.1904.101_Release.zip similarity index 56% rename from Rilasci/MCC_1.1.1904.97_Debug.zip rename to Rilasci/MCC_1.1.1904.101_Release.zip index e8a6a09..fd0ea1a 100644 Binary files a/Rilasci/MCC_1.1.1904.97_Debug.zip and b/Rilasci/MCC_1.1.1904.101_Release.zip differ diff --git a/Rilasci/TEST_CLIENT_1.1.1904.97_Release.zip b/Rilasci/TEST_CLIENT_1.1.1904.101_Debug.zip similarity index 61% rename from Rilasci/TEST_CLIENT_1.1.1904.97_Release.zip rename to Rilasci/TEST_CLIENT_1.1.1904.101_Debug.zip index 100ac76..bae0887 100644 Binary files a/Rilasci/TEST_CLIENT_1.1.1904.97_Release.zip and b/Rilasci/TEST_CLIENT_1.1.1904.101_Debug.zip differ diff --git a/Rilasci/TEST_CLIENT_1.1.1904.101_Release.zip b/Rilasci/TEST_CLIENT_1.1.1904.101_Release.zip new file mode 100644 index 0000000..ca9d33d Binary files /dev/null and b/Rilasci/TEST_CLIENT_1.1.1904.101_Release.zip differ diff --git a/Rilasci/TEST_CLIENT_1.1.1904.97_Debug.zip b/Rilasci/TEST_CLIENT_1.1.1904.97_Debug.zip deleted file mode 100644 index 6f67e2f..0000000 Binary files a/Rilasci/TEST_CLIENT_1.1.1904.97_Debug.zip and /dev/null differ diff --git a/SharedAssemblyInfo.cs b/SharedAssemblyInfo.cs index 2e062e3..0f8b1f4 100644 --- a/SharedAssemblyInfo.cs +++ b/SharedAssemblyInfo.cs @@ -8,5 +8,5 @@ using System.Runtime.InteropServices; [assembly: AssemblyCopyright("Copyright © Steamware 2019")] [assembly: AssemblyTrademark("_")] [assembly: ComVisible(false)] -[assembly: AssemblyVersion("1.1.1904.99")] -[assembly: AssemblyFileVersion("1.1.1904.99")] +[assembly: AssemblyVersion("1.1.1904.101")] +[assembly: AssemblyFileVersion("1.1.1904.101")]