From 7ebabf41b212363057b5d15802c36c317d181033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ho=CC=88rler?= Date: Sat, 14 Jul 2018 10:54:53 +0200 Subject: [PATCH] add ping to client to test connection --- .../EHEC_Service/Reference.cs | 7 +++ .../EHEC_Service/Service.wsdl | 19 +++++++ .../EHEC_Service/Service1.xsd | 12 ++++ Client/Client/Global.cs | 12 ++-- Client/Client/MainWindow.xaml | 23 ++++---- Client/Client/MainWindow.xaml.cs | 55 +++++++++++++++++-- 6 files changed, 109 insertions(+), 19 deletions(-) diff --git a/Client/Client/Connected Services/EHEC_Service/Reference.cs b/Client/Client/Connected Services/EHEC_Service/Reference.cs index 3c5c7e7..944582c 100644 --- a/Client/Client/Connected Services/EHEC_Service/Reference.cs +++ b/Client/Client/Connected Services/EHEC_Service/Reference.cs @@ -787,6 +787,9 @@ namespace Client.EHEC_Service { [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/GetResults", ReplyAction="http://tempuri.org/IService/GetResultsResponse")] Client.EHEC_Service.Result[] GetResults(); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService/Ping", ReplyAction="http://tempuri.org/IService/PingResponse")] + string Ping(); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] @@ -843,5 +846,9 @@ namespace Client.EHEC_Service { public Client.EHEC_Service.Result[] GetResults() { return base.Channel.GetResults(); } + + public string Ping() { + return base.Channel.Ping(); + } } } diff --git a/Client/Client/Connected Services/EHEC_Service/Service.wsdl b/Client/Client/Connected Services/EHEC_Service/Service.wsdl index 9ad57bf..2a2e423 100644 --- a/Client/Client/Connected Services/EHEC_Service/Service.wsdl +++ b/Client/Client/Connected Services/EHEC_Service/Service.wsdl @@ -49,6 +49,12 @@ + + + + + + @@ -78,6 +84,10 @@ + + + + @@ -144,6 +154,15 @@ + + + + + + + + + diff --git a/Client/Client/Connected Services/EHEC_Service/Service1.xsd b/Client/Client/Connected Services/EHEC_Service/Service1.xsd index 50d4f43..3085f46 100644 --- a/Client/Client/Connected Services/EHEC_Service/Service1.xsd +++ b/Client/Client/Connected Services/EHEC_Service/Service1.xsd @@ -97,4 +97,16 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/Client/Client/Global.cs b/Client/Client/Global.cs index 8b3e849..fc20d83 100644 --- a/Client/Client/Global.cs +++ b/Client/Client/Global.cs @@ -4,17 +4,20 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using Client.EHEC_Service; +using System.Windows; namespace Client { -/// -/// This is a Singleton implementation for the need of one single client connection -/// + /// + /// This is a Singleton implementation for the need of one single client connection + /// public class Global { private Global() - { } + { + + } private static Global globalInstance = null; private static ServiceClient service = null; @@ -39,5 +42,6 @@ namespace Client return service; } } + } } diff --git a/Client/Client/MainWindow.xaml b/Client/Client/MainWindow.xaml index 8028c4d..bb67247 100644 --- a/Client/Client/MainWindow.xaml +++ b/Client/Client/MainWindow.xaml @@ -26,8 +26,8 @@ - - + + @@ -38,8 +38,8 @@