title: Storing the ID in State in .net Windows Service
body: <p>I have a .net Windows Service developed in C#. OnStart of the service I am calling a function that stores the serviceName,DateTime in a ServiceLog sql Table and returns the ServiceID(ID number from the table).</p>
  
  <p>OnStop I want to update the same record with the StopDateTime.</p>
  
  <p>I don't know how to store the ID number that is returned above.</p>
  
  <p>Please help</p>