<p>I have a web service in C# and would like to have a nested inner class, that abstracts away the session collection, something like this: </p>

<pre>
<code>
public class Service : System.Web.Services.WebService
{
    [WebMethod]
    public string Foo(string ticket)
    {
        SessionPool.getSession(ticket);
    }

    private class SessionPool 
    {
        public static Session getSession(string ticket)
        {
            // this is what i want to do, but I can't access Context
            return (Session)Context.Session[ticket];
        }
    }
}
</code>
</pre>

<p>Is it possible to access the HTTP context of the WebService class via a nested class? If not, is there way I can store the reference to it?</p>

```
```
System.Web.HttpContext.Current
```
```
?