Persisting data in an NT Service app

  • Thread starter Thread starter SagaV9
  • Start date Start date
S

SagaV9

Guest
Hi all. I'm using VS2015, C# under Windows 7 and 10.

I inherited an NT service app that runs even when the user is logged out. The user wants the service to be configurable through an external app. I've already done some coding and am at the part where I need to save the user preferences for the service to read them.

What is best practice for a storage medium? This has to be writable when the user is logged in and readable when s/he is logged out. I usually use settings; however, I believe this mechanism is tied to a user which won't be logged in when the service is running. I've done NT services before, in fact, before MS came out with .NET, so I'd rather rethink the strategy. Thanks for your time. Saga



You can't take the sky from me

Continue reading...
 
Back
Top