Accessing the Query String

How do I get access to the query string of an HTTP request when processing a message?

The query string isn't one of the properties available on the new WebOperationContext but you can still get access to it through the HTTP request message property.

 MessageProperties properties = OperationContext.Current.IncomingMessageProperties;
HttpRequestMessageProperty requestProperty = (HttpRequestMessageProperty)properties[HttpRequestMessageProperty.Name];
string queryString = requestProperty.QueryString;

Next time: Taking Action on Client Close