aspdrugdealer
MIS
Hey all-
I am working on my first windows service and I am having trouble using the System.Threading.Timer Class. Could someone give me a little help. I just want it to fire off every 5-10 seconds.
Protected Overrides Sub OnStart(ByVal args() As String)
Dim strTime As String = ConfigurationManager.AppSettings("ExportTimer").ToString
Dim myCallBack As TimerCallback = New TimerCallback(AddressOf Me.mySub)
Dim tExport As Timer = New Timer(myCallBack, 0, 0, CInt(strTime))
End Sub
Public Sub mySub(ByVal state As Object)
Call CreateXMLRegistry()
End Sub
I am working on my first windows service and I am having trouble using the System.Threading.Timer Class. Could someone give me a little help. I just want it to fire off every 5-10 seconds.
Protected Overrides Sub OnStart(ByVal args() As String)
Dim strTime As String = ConfigurationManager.AppSettings("ExportTimer").ToString
Dim myCallBack As TimerCallback = New TimerCallback(AddressOf Me.mySub)
Dim tExport As Timer = New Timer(myCallBack, 0, 0, CInt(strTime))
End Sub
Public Sub mySub(ByVal state As Object)
Call CreateXMLRegistry()
End Sub