From 31ae07b3ebc767e8f2c8a4ed2cd37a95cce69015 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Tue, 28 Apr 2020 14:51:24 +0200 Subject: [PATCH] EDMI: fix API.Client constructor --- Modules.EDMIAPI/Client.vb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Modules.EDMIAPI/Client.vb b/Modules.EDMIAPI/Client.vb index b0ff42e8..8bceaa00 100644 --- a/Modules.EDMIAPI/Client.vb +++ b/Modules.EDMIAPI/Client.vb @@ -43,8 +43,10 @@ Public Class Client Dim oBinding = Channel.GetBinding() Dim oAddress = New EndpointAddress($"net.tcp://{IPAddress}:{PortNumber}/DigitalData/Services/Main") Dim oFactory = New ChannelFactory(Of IEDMIServiceChannel)(oBinding, oAddress) - Catch ex As Exception + _channelFactory = oFactory + Catch ex As Exception + _logger.Error(ex) End Try End Sub