This dumb mistake just cost me an hour spelunking around in the debugger:
var status = source.Substring(source.LastIndexOf("/" + 1));
(where source is e.g. "http://foo.com/status/all-is-good")
Fortunately the ramifications
Here’s another custom WCF EndpointBehavior I found useful recently.
Not content with logging all unhandled errors, I wanted to output a DEBUG level log message before and after every operation invocation. As
OK, my last WCF-related code snippet of the day, I promise. This is quite similar to the last one. I required that the WCF service I was developing started a new NHibernate Session