Getting OperationName in RequestInterceptor
Posted
by
zak
on Stack Overflow
See other posts from Stack Overflow
or by zak
Published on 2014-08-18T12:11:31Z
Indexed on
2014/08/18
16:23 UTC
Read the original article
Hit count: 100
I have implemented a custom requestor interceptor for the purpose of authenticating requests, similar to below. I am trying to get the operation name in ProcessRequest and unable to.
Can anyone let me know how do I get the operation name here?
public class SampleInterceptor: Microsoft.ServiceModel.Web.RequestInterceptor
{
public SampleInterceptor() : base(true)
{
}
public override void ProcessRequest(ref System.ServiceModel.Channels.RequestContext requestContext)
{
//need the operation name here to authenticate
}
}
© Stack Overflow or respective owner