title: How do I make my static class not so static?
body: <p>I have a static class that contains my database logic. </p>
  
  <p>This class is used in a website, web services and as part of a middleware component.</p>
  
  <p>For every method in this class I need a piece of context information from the caller. In the case of the web site this would be user information, for the web service and middleware component, this would identify the calling service.</p>
  
  <p>I can't store this value in the config because this might differ per user and I don't always have a httpcontext to get this from.</p>
  
  <p>I could easily add a new parameter onto every method in this class or I could change it from a static class so that it has a single non-static property but neither of those solutions seem very elegant. </p>
  
  <p>So are there any other options I haven't considered?</p>