S
SBh. via DotNetMonster.com
I already created a windows service that receive parameter in Sub GetValue ()
and I can registered and started service successfully. But unfortunately, I
don't know how to write program to call this windows service.
Anyone can help me and give me some example code, please ....
My windows service source code are as below :
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Protected Overrides Sub OnStart(ByVal args() As String)
GetValue (args(1), args(2))
End Sub
Public Shared Sub GetValue (ByVal Arg1 as String, ByVal Arg2 as String)
.... [ Calculate and return result ] ...
End Sub
and I can registered and started service successfully. But unfortunately, I
don't know how to write program to call this windows service.
Anyone can help me and give me some example code, please ....
My windows service source code are as below :
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Protected Overrides Sub OnStart(ByVal args() As String)
GetValue (args(1), args(2))
End Sub
Public Shared Sub GetValue (ByVal Arg1 as String, ByVal Arg2 as String)
.... [ Calculate and return result ] ...
End Sub