EDMI.API: improve logging
This commit is contained in:
parent
f5ec035772
commit
ddeb96824d
@ -106,6 +106,8 @@ Public Class Client
|
|||||||
Dim oAddress = New EndpointAddress($"net.tcp://{IPAddress}:{PortNumber}/DigitalData/Services/Main")
|
Dim oAddress = New EndpointAddress($"net.tcp://{IPAddress}:{PortNumber}/DigitalData/Services/Main")
|
||||||
Dim oFactory = New ChannelFactory(Of IEDMIServiceChannel)(oBinding, oAddress)
|
Dim oFactory = New ChannelFactory(Of IEDMIServiceChannel)(oBinding, oAddress)
|
||||||
|
|
||||||
|
Logger.Debug("Connecting to Service at: [{0}]", oAddress)
|
||||||
|
|
||||||
ChannelFactory = oFactory
|
ChannelFactory = oFactory
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
Logger.Error(ex)
|
Logger.Error(ex)
|
||||||
@ -122,6 +124,7 @@ Public Class Client
|
|||||||
|
|
||||||
Logger.Debug("Opening channel..")
|
Logger.Debug("Opening channel..")
|
||||||
Channel.Open()
|
Channel.Open()
|
||||||
|
|
||||||
Dim oResponse = Channel.GetClientConfig()
|
Dim oResponse = Channel.GetClientConfig()
|
||||||
If oResponse.OK Then
|
If oResponse.OK Then
|
||||||
ClientConfig = oResponse.ClientConfig
|
ClientConfig = oResponse.ClientConfig
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user