config in client suite
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
Imports DigitalData.Modules.Logging
|
||||
Imports DigitalData.Modules.Logging.LogConfig
|
||||
Imports DigitalData.Modules.Config
|
||||
Imports System.ServiceModel
|
||||
Imports EDMI_ClientSuite.NetworkService_DDEDM
|
||||
Imports System.ServiceModel.Channels
|
||||
@@ -19,8 +19,9 @@ Public Class ClassInit
|
||||
_Logger = My.LogConfig.GetLogger()
|
||||
End Sub
|
||||
|
||||
Public Function TestConnectionURLExists()
|
||||
Return My.Settings.ICMServiceAddress <> String.Empty
|
||||
Public Function TestConnectionURLExists() As Boolean
|
||||
Return My.ConfigManager.Config.ServiceConnection <> String.Empty
|
||||
'Return My.Settings.ICMServiceAddress <> String.Empty
|
||||
End Function
|
||||
|
||||
Public Async Function TestConnectionAsync(EndpointURL As String) As Task(Of ConnectionTestResult)
|
||||
@@ -44,7 +45,8 @@ Public Class ClassInit
|
||||
End Function
|
||||
|
||||
Public Function GetChannelFactory() As IChannelFactory(Of IEDMServiceChannel)
|
||||
Return GetChannelFactory(My.Settings.ICMServiceAddress)
|
||||
'Return GetChannelFactory(My.Settings.ICMServiceAddress)
|
||||
Return GetChannelFactory(My.ConfigManager.Config.ServiceConnection)
|
||||
End Function
|
||||
|
||||
Public Function GetChannelFactory(EndpointURL As String) As ChannelFactory(Of IEDMServiceChannel)
|
||||
|
||||
Reference in New Issue
Block a user