Hey stackoverflow,
I have written a pretty simple Windows service in C# that starts up automatically and runs A-okay. I was wondering the best method to have the service accept command-line input -- it will always be from the same user (admin), and the service itself is fully trusted (LocalSystem).
I know a little (very little) about design pattern terminology -- should I be looking to wrap this simple service in an Interpreter-style pattern? Is this too complex, and is there a way to do it through the program's entry point? (As if I was just doing a simple Console app that could take string[] args?)
Basically it should accept some very specific grammar (specific commands) which can be issued via console whenever, and only those specific commands (to hopefully avoid any of a variety of security issues).
If this needs clarification, let me know, and thanks for any suggestions (or even solutions)!