protected void SetRequestContext(RequestEncoding encoding) { // fetch the current operation context. OperationContext context = OperationContext.Current; }