It’s not pretty, but this is what I did to get the operation name:
var action = OperationContext.Current.IncomingMessageHeaders.Action;
var operationName = action.Substring(action.LastIndexOf("https://stackoverflow.com/", StringComparison.OrdinalIgnoreCase) + 1);
More Related Contents:
- REST / SOAP endpoints for a WCF service
- How to add a custom HTTP header to every WCF call?
- How do I return clean JSON from a WCF Service?
- How do I pass values to the constructor on my wcf service?
- Could not find default endpoint element
- How to use a WSDL file to create a WCF service (not make a call)
- How to set Json.Net as the default serializer for WCF REST service
- When to use DataContract and DataMember attributes?
- Where to store data for current WCF call? Is ThreadStatic safe?
- Obtaining client IP address in WCF 3.0
- Why should a developer use web services instead of direct connections to a db? [closed]
- C# WCF REST – How do you use JSON.Net serializer instead of the default DataContractSerializer?
- How to use Fiddler to monitor WCF service
- How to handle Ajax JQUERY POST request with WCF self-host
- How to add custom soap headers in wcf?
- Cannot serve WCF services in IIS on Windows 8
- An existing connection was forcibly closed by the remote host – WCF
- Is it recommended to use Self Tracking Entities with WCF services?
- WCF ChannelFactory vs generating proxy
- Run WCF ServiceHost with multiple contracts
- How can I return json from my WCF rest service (.NET 4), using Json.Net, without it being a string, wrapped in quotes?
- Invoking WCF service method through a browser
- Best practices for DateTime serialization in .NET 3.5
- Shared data object between WCF service and Silverlight app
- Why is my WCF web service presenting this object in a different namespace with different field names?
- what is the global.asax Application_Start equivalent when using WAS in IIS7
- WCF GZip Compression Request/Response Processing
- WCF NetTcpBinding with mex
- How can a WCF service listen the same port as IIS?
- Adding basic HTTP auth to a WCF REST service