T
Tim Long
Can anybody tell me how I can ensure only a single instance of an assembly
is running on a given system at any given time?
To give an example, say I have an assembly "H" that provides hardware
abstraction and connects to a Comm port. Assebly H exposes two classes
H.ClassA and H.ClassB.
Different applications create instances of H.ClassA and H.ClassB. Both
applications need to run simultaneously and "H" needs to service both
applications using the same (shared) Comm port.
Obviously, there can only be one connection to the Comm port thus only a
single instance of my "H" assembly should execute.
Is there a way to do this in .NET or maybe I'm approaching the problem the
wrong way. Any ideas?
Regards,
--Tim Long
is running on a given system at any given time?
To give an example, say I have an assembly "H" that provides hardware
abstraction and connects to a Comm port. Assebly H exposes two classes
H.ClassA and H.ClassB.
Different applications create instances of H.ClassA and H.ClassB. Both
applications need to run simultaneously and "H" needs to service both
applications using the same (shared) Comm port.
Obviously, there can only be one connection to the Comm port thus only a
single instance of my "H" assembly should execute.
Is there a way to do this in .NET or maybe I'm approaching the problem the
wrong way. Any ideas?
Regards,
--Tim Long