title: ASP.NET - Create custom context object?
body: <p>How do I create a globally accessible <code>Context</code> object similar to the <code>HttpContext</code> object?</p>
  
  <p>I want to create a custom class library which I want to reference from a website project. In the website project I want to be able to call the following globally:</p>
  
  <pre><code>ClassLibraryName.Context
  </code></pre>
  
  <p><strong>I cannot create a global <code>property</code> directly in my classlibrary, so how should this be implemented?</strong> (I've seen other applications/products use this approach, one of which is Sitecore which has a custom Sitecore.Context object available)</p>
  
  <h1>Edit</h1>
  
  <p>Might this be a 'valid' solution?</p>
  
  <pre><code>namespace MyLibrary
  {
    public class Context
    {
      public static object ContextualObject
      {
        get;
        set;
      }
    }
  }
  </code></pre>