I need to create a Windows service that can run in many instances, I should be able to exceed the parameters in which the details are specified has been done. For example,
something like
\ services \ emailengine.exe 1 3 services \ emailengine.exe 2 3 \ services \ emailengine.exe 3 3
So, the first parameter is the example and the second is the total number of the ultimate examples. So, the above are being shown
Run example 3 Example of example 3 Run Example 3 Run example 3 of 3
If I do something like this
\ services \ emailengine.exe 4 3
This should throw an exception, because the current example can not exceed the total number of permitted instances. And then if I start / install something like this
\ services \ emailengine.exe 2 3
still throw an exception The second example is like running beforehand.
I could provide some code, but I do not know where to start in the first place. The service is all built, up and running, but this is just a normal Windows service that is good for you to set up and go. Now I need to make it what I have described, and like I said, I do not know how this approach is.
Can someone please suggest what perspective should I take? I went to Gogal but I did not find anything relevant.
Comments
Post a Comment