How do I determine if a class library is running in a Windows Service?
<p>I have a class library.  How do I determine if it is running in a Windows Service versus something else?  For example a console application, WPF, ASP.NET, WinForms?  </p>
