title: How do I access intrinsic ASP.NET objects from web service code (C#)?
body: <p>Specifically, I need to validate the incoming X.509 security certificate against a database to allow access to my web service.  In order to do this, I need to get a copy of the certificate sent from the client.  I think I know how to do that, if I can figure out how to get access to the http Request object -- an intrinsic ASP.NET object.</p>
  
  <p>I found the following code that describes how to create a component that will do this, and how to load it in the code-behind for the Page Load event on an aspx page.  That's great, I learned a lot from the article, but it still doesn't address my problem -- there is no web page, so no page load event.</p>
  
  <p>HOW TO: Access ASP.NET Intrinsic Objects from .NET Components by Using Visual C# .NET
  <a href="http://support.microsoft.com/kb/810928" rel="nofollow noreferrer">http://support.microsoft.com/kb/810928</a></p>
  
  <p>I am using C# and .NET 3.5, but I am not using the advanced coding features of C# (lambdas, extension methods, etc).  I just haven't put in the time to learn how to use them yet...</p>
  
  <p>Any tips, pointers, sample code would be much appreciated.
  Thanks,
  Dave</p>