title: Windows service and design pattern
body: <p>I have a windows service to do the background process. This windows service will interact to asp.net website. The functionality is as below.</p>
  
  <p>In my website 3 actions are there. User can choose the task (suppose three buttons are there). Then it will call the windows service. The rest of the operation is performed by windows service. User can log out from the website, but it will run the service in background. Once it is finished it will make corresponding changes in database. 
  I need to know whether I can apply any design pattern to the windows service (factory, abstract factory etc.). I have read about different design patterns, but I am really confused about how this applied to a project. Currently I am writing the entire code in ‘OnStart’ and ‘OnStop’ events of windows service. Please guide me.</p>
  
  <p>Thanks.</p>