I have a console app running that references an Class Library.
The console app runs fine, but I want to be able to run a windows form
that will let me poll properties of the Class and reset them.
As my console is running, it checks these properties, if one of the
properties gets set, then my console app knows that it is supposed to
do something, like shut down.
I have setup a Shared property in my class:
Private Shared sTest As Integer
Public Shared Property Test() As Integer
Get
Return sTest
End Get
Set(ByVal Value As Integer)
sTest = Value
End Set
End Property
As I understood it, Shared properties are available to all INSTANCES
of a class. Granted that the Windows form is probably a different
process than the Console...is there anyway to create a truley shared
property across all instances in all processes? IS there another way
to do this?
My console App is running through records in a DB, so I could just
update the record it is working on, but that would be tedious since it
would require me to poll the DB way to often.
Any help would be appreciated or clues on another way to do this...