From 0df05264eb7b913296cd5f02436bdb1f3aa6fbb7 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 19 Oct 2020 19:11:29 +0200 Subject: [PATCH] Added nuget package per MConnectSDK e 4.6.2 --- Thermo.Active.CmsConnectGateway/README.txt | 13 +++++ .../Thermo.Active.CmsConnectGateway.csproj | 55 ++++++++++++++++++- Thermo.Active.CmsConnectGateway/app.config | 35 ++++++++++++ .../example-NLog.config | 31 +++++++++++ .../example-mconnect.conf.yaml | 14 +++++ .../packages.config | 14 +++++ Thermo.Active/App.config | 28 ++++++++++ 7 files changed, 189 insertions(+), 1 deletion(-) create mode 100644 Thermo.Active.CmsConnectGateway/README.txt create mode 100644 Thermo.Active.CmsConnectGateway/app.config create mode 100644 Thermo.Active.CmsConnectGateway/example-NLog.config create mode 100644 Thermo.Active.CmsConnectGateway/example-mconnect.conf.yaml diff --git a/Thermo.Active.CmsConnectGateway/README.txt b/Thermo.Active.CmsConnectGateway/README.txt new file mode 100644 index 00000000..32393f88 --- /dev/null +++ b/Thermo.Active.CmsConnectGateway/README.txt @@ -0,0 +1,13 @@ +--------------------------------------------------------------- +------- MConnect Client SDK ------- +--------------------------------------------------------------- + +Libreria di utility per connessione con il cloud di Maestro Connect. + +Le dipendenze inserite sono necessarie al funzionamento dell'SDK. + +Sono inclusi a titolo di esempio due files: + * example-mconnect.conf.yaml + * example-NLog.config + +Attenzione a configurare correttamente il file NLog.xml includendo il rule per la classe, vedere ad esempio il file example-NLog.config allegato. \ No newline at end of file diff --git a/Thermo.Active.CmsConnectGateway/Thermo.Active.CmsConnectGateway.csproj b/Thermo.Active.CmsConnectGateway/Thermo.Active.CmsConnectGateway.csproj index 683b5c59..3b0ffc1f 100644 --- a/Thermo.Active.CmsConnectGateway/Thermo.Active.CmsConnectGateway.csproj +++ b/Thermo.Active.CmsConnectGateway/Thermo.Active.CmsConnectGateway.csproj @@ -31,20 +31,68 @@ 4 + + ..\packages\MConnectSDK.1.2.2007.218\lib\net462\MConnectSDK.dll + + + ..\packages\Newtonsoft.Json.12.0.2\lib\net45\Newtonsoft.Json.dll + + + ..\packages\NLog.4.6.7\lib\net45\NLog.dll + + + ..\packages\Pipelines.Sockets.Unofficial.2.0.25\lib\net461\Pipelines.Sockets.Unofficial.dll + ..\packages\SSH.NET.2016.1.0\lib\net40\Renci.SshNet.dll + + ..\packages\StackExchange.Redis.2.0.601\lib\net461\StackExchange.Redis.dll + + + ..\packages\System.Buffers.4.5.0\lib\netstandard2.0\System.Buffers.dll + + + + ..\packages\System.Diagnostics.PerformanceCounter.4.6.0\lib\net461\System.Diagnostics.PerformanceCounter.dll + + + + ..\packages\System.IO.Pipelines.4.6.0\lib\netstandard2.0\System.IO.Pipelines.dll + + + ..\packages\System.Memory.4.5.3\lib\netstandard2.0\System.Memory.dll + ..\packages\IPNetwork2.2.4.0.126\lib\net46\System.Net.IPNetwork.dll + + + ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll + + + ..\packages\System.Runtime.CompilerServices.Unsafe.4.6.0\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll + + + + + ..\packages\System.Threading.Channels.4.6.0\lib\netstandard2.0\System.Threading.Channels.dll + + + ..\packages\System.Threading.Tasks.Extensions.4.5.3\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll + + + + ..\packages\YamlDotNet.7.0.0\lib\net45\YamlDotNet.dll + @@ -57,8 +105,13 @@ + + + - + + + \ No newline at end of file diff --git a/Thermo.Active.CmsConnectGateway/app.config b/Thermo.Active.CmsConnectGateway/app.config new file mode 100644 index 00000000..ea79d959 --- /dev/null +++ b/Thermo.Active.CmsConnectGateway/app.config @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Thermo.Active.CmsConnectGateway/example-NLog.config b/Thermo.Active.CmsConnectGateway/example-NLog.config new file mode 100644 index 00000000..d346a6e6 --- /dev/null +++ b/Thermo.Active.CmsConnectGateway/example-NLog.config @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Thermo.Active.CmsConnectGateway/example-mconnect.conf.yaml b/Thermo.Active.CmsConnectGateway/example-mconnect.conf.yaml new file mode 100644 index 00000000..2916f498 --- /dev/null +++ b/Thermo.Active.CmsConnectGateway/example-mconnect.conf.yaml @@ -0,0 +1,14 @@ +#File di conf per MConnectClientSDK +conf: + Client_ID: "test" + MachineID: "cjpjwuas400cb0slxs5zfj4yh" + PingTarget: "stg.api.maestroconnect.scmgroup.com" + AliveTarget: "https://stg.api.maestroconnect.scmgroup.com/health" + BaseUrl: "https://stg.api.maestroconnect.scmgroup.com/api" + UploadUrl: "https://stg.api.maestroconnect.scmgroup.com/storage-api/backups" + WebAppUrl: "https://stg.maestroconnect.scmgroup.com/settings/machine-activation?user_code={0}&machine_id={1}" + MemoryLayer: + Redis: + ConnectionString: "127.0.0.1,abortConnect=false,ssl=false" + DbIndex: 1 + Module: "MCC" \ No newline at end of file diff --git a/Thermo.Active.CmsConnectGateway/packages.config b/Thermo.Active.CmsConnectGateway/packages.config index 959d6a4a..92acd04c 100644 --- a/Thermo.Active.CmsConnectGateway/packages.config +++ b/Thermo.Active.CmsConnectGateway/packages.config @@ -1,5 +1,19 @@  + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Thermo.Active/App.config b/Thermo.Active/App.config index 774e2649..2e370658 100644 --- a/Thermo.Active/App.config +++ b/Thermo.Active/App.config @@ -77,6 +77,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +