Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 正在RequestInterceptor中获取OperationName_C#_.net_Wcf - Fatal编程技术网

C# 正在RequestInterceptor中获取OperationName

C# 正在RequestInterceptor中获取OperationName,c#,.net,wcf,C#,.net,Wcf,为了验证请求,我实现了一个定制的请求截取器,如下所示。我正试图在ProcessRequest中获取操作名称,但无法访问 有人能告诉我如何在这里获得操作名称吗 public class SampleInterceptor: Microsoft.ServiceModel.Web.RequestInterceptor { public SampleInterceptor() : base(true) { } public override void Proce

为了验证请求,我实现了一个定制的请求截取器,如下所示。我正试图在ProcessRequest中获取操作名称,但无法访问

有人能告诉我如何在这里获得操作名称吗

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

    }
}

您正在查找吗?不。不是操作名称,而是触发此请求的操作名称。。。