diff --git a/AppData/DbLib.cs b/AppData/DbLib.cs
new file mode 100644
index 0000000..bf5bf89
--- /dev/null
+++ b/AppData/DbLib.cs
@@ -0,0 +1,6 @@
+namespace AppData
+{
+ public class DbLib
+ {
+ }
+}
diff --git a/AppData/SyncLib.cs b/AppData/SyncLib.cs
new file mode 100644
index 0000000..91f42f3
--- /dev/null
+++ b/AppData/SyncLib.cs
@@ -0,0 +1,21 @@
+namespace AppData
+{
+ public class SyncLib
+ {
+
+ ///
+ /// Esegue richieste lettura da PROD
+ ///
+ public static void procProdReadReq()
+ {
+ // !!!FIXME!!!
+ }
+ ///
+ /// Esegue richieste lettura da PROD
+ ///
+ public static void procProdWriteReq()
+ {
+ // !!!FIXME!!!
+ }
+ }
+}
diff --git a/NKC_SDK/NKC.cs b/NKC_SDK/NKC.cs
index 6f700b0..fce0251 100644
--- a/NKC_SDK/NKC.cs
+++ b/NKC_SDK/NKC.cs
@@ -17,7 +17,7 @@ namespace NKC_SDK
get
{
// 5 sec timeout
- return 5000;
+ return 10000;
}
}
protected override WebRequest GetWebRequest(Uri address)
diff --git a/RedisExample.sln b/RedisExample.sln
index 1768a89..7233fb5 100644
--- a/RedisExample.sln
+++ b/RedisExample.sln
@@ -1,12 +1,14 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 15
-VisualStudioVersion = 15.0.28307.852
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29503.13
MinimumVisualStudioVersion = 10.0.40219.1
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "RedisExample", "RedisExample\RedisExample.vbproj", "{9694C356-E431-4861-A120-ADEE2AAD6345}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppData", "AppData\AppData.csproj", "{4308EA22-4C18-4A77-84DF-C6BCDD7BD07C}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NKC_SDK", "NKC_SDK\NKC_SDK.csproj", "{5A0B6E45-169B-44D4-9E24-13718B8EB7CC}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -26,6 +28,12 @@ Global
{4308EA22-4C18-4A77-84DF-C6BCDD7BD07C}.Debug-LELE|Any CPU.Build.0 = Debug-LELE|Any CPU
{4308EA22-4C18-4A77-84DF-C6BCDD7BD07C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4308EA22-4C18-4A77-84DF-C6BCDD7BD07C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5A0B6E45-169B-44D4-9E24-13718B8EB7CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5A0B6E45-169B-44D4-9E24-13718B8EB7CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5A0B6E45-169B-44D4-9E24-13718B8EB7CC}.Debug-LELE|Any CPU.ActiveCfg = Debug|Any CPU
+ {5A0B6E45-169B-44D4-9E24-13718B8EB7CC}.Debug-LELE|Any CPU.Build.0 = Debug|Any CPU
+ {5A0B6E45-169B-44D4-9E24-13718B8EB7CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5A0B6E45-169B-44D4-9E24-13718B8EB7CC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/RedisExample/Form1.vb b/RedisExample/Form1.vb
index 9e47c93..748f402 100644
--- a/RedisExample/Form1.vb
+++ b/RedisExample/Form1.vb
@@ -1,8 +1,12 @@
-Imports SteamWare
-Imports AppData
+Imports AppData
Imports AppData.ComLib
+Imports NKC_SDK
+Imports SteamWare
+
Public Class Form1
+
+
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
' invio notifica che c'è una busta da processare
Dim redKey = $"PROVA:CURR"
@@ -18,8 +22,16 @@ Public Class Form1
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
+
' caricamento del NEXT STACK da redis (come oggetto)
- Dim getFirstBunk = ComLib.prodGetFirstBunk()
+ ' PROD http : http://seriate.steamware.net:8083/NKC/
+ ' DEV: https : http://localhost:44388/
+ Dim baseUrl = "http://seriate.steamware.net:8083/NKC/"
+ Dim currNKC = New NKC(baseUrl)
+ Dim getFirstBunk = currNKC.getFirstBunk
+
+ '' chiamata diretta redis + DB
+ 'Dim getFirstBunk = ComLib.prodGetFirstBunk()
' ho un bunk coi suoi pannelli...
Label1.Text = $"Trovato il bunk {getFirstBunk.StackId} costituito da {getFirstBunk.PanelsList.Count} pannelli"
diff --git a/RedisExample/RedisExample.vbproj b/RedisExample/RedisExample.vbproj
index 8a68f4e..611fac7 100644
--- a/RedisExample/RedisExample.vbproj
+++ b/RedisExample/RedisExample.vbproj
@@ -189,6 +189,10 @@
{4308ea22-4c18-4a77-84df-c6bcdd7bd07c}
AppData
+
+ {5a0b6e45-169b-44d4-9e24-13718b8eb7cc}
+ NKC_SDK
+
\ No newline at end of file