WCF : get IHttpHandler

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QWxwaGFwYWdl?=

    WCF : get IHttpHandler

    Hello,

    I want to get the IHttpHandler from a svc service.
    With old asmx webservices, I get it using
    WebServiceHandl erFactory.GetHa ndler .

    How can I get IHttpHandler in WCF running in serviceHostingE nvironment :
    aspNetCompatibi lityEnabled="tr ue" ?

    Thanks in advance for your help.
  • Teemu Keiski

    #2
    Re: get IHttpHandler

    With compat mode you have access to HttpContext so you can use
    HttpContext.Cur rent.Handler, however you didn't tell too much about your
    case, so I don't know is it adequate for your case...

    --
    Teemu Keiski
    AspInsider, ASP.NET MVP



    "Alphapage" <Alphapage@disc ussions.microso ft.comwrote in message
    news:3B95487D-AED7-4B21-92D0-B94CCAF2D314@mi crosoft.com...
    Hello,
    >
    I want to get the IHttpHandler from a svc service.
    With old asmx webservices, I get it using
    WebServiceHandl erFactory.GetHa ndler .
    >
    How can I get IHttpHandler in WCF running in serviceHostingE nvironment :
    aspNetCompatibi lityEnabled="tr ue" ?
    >
    Thanks in advance for your help.

    Comment

    Working...