38 lines
1.1 KiB
VB.net
38 lines
1.1 KiB
VB.net
Imports System.ServiceModel
|
|
Imports System.Threading
|
|
Imports DigitalData.Modules.Config
|
|
Imports DigitalData.Modules.Logging
|
|
Imports DigitalData.Modules.EDMIFileOps.EDMIServiceReference
|
|
|
|
Namespace My
|
|
''' <summary>
|
|
''' Extends the My Namespace
|
|
''' Example: My.LogConfig
|
|
''' </summary>
|
|
<HideModuleName()>
|
|
Module Extension
|
|
Property ConfigManager As ConfigManager(Of ClassConfig)
|
|
ReadOnly Property Config As ClassConfig
|
|
Get
|
|
Return ConfigManager.Config
|
|
End Get
|
|
End Property
|
|
Property LogConfig As LogConfig
|
|
Property ChannelFactory As ChannelFactory(Of IEDMServiceChannel)
|
|
Property Channel As IEDMServiceChannel
|
|
Property MainForm As frmMain
|
|
End Module
|
|
|
|
''' <summary>
|
|
''' Extends the My.Application Namespace to hold Application State
|
|
''' Example: My.Application.User
|
|
''' </summary>
|
|
Partial Class MyApplication
|
|
' User Config
|
|
Public User As New UserState()
|
|
Public Service As New ServiceState()
|
|
End Class
|
|
End Namespace
|
|
|
|
|