This commit is contained in:
Digital Data - Marlon Schreiber
2019-01-23 18:01:24 +01:00
parent 6c9fc1c9e6
commit 00924416ec
5 changed files with 60 additions and 32 deletions

View File

@@ -38,7 +38,7 @@ Public Class ClassInit
End Sub
Private Sub Connect2NetService()
Private Function Connect2NetService()
Try
_Channel = Nothing
_Channel = _ChannelFactory.CreateChannel()
@@ -46,12 +46,14 @@ Public Class ClassInit
AddHandler _Channel.Faulted, AddressOf Reconnect
_Channel.Open()
Return True
Catch ex As Exception
_Logger.Error(ex)
Return False
End Try
End Sub
End Function
Private Sub Reconnect()
_Channel.Abort()