public override string SelectOperation(HttpRequestMessage message)
        {
            var operation = base.SelectOperation(message);

            SelectedOperation.Set(message, operation);
            return(operation);
        }
        public static string Get(HttpRequestMessage request)
        {
            if (request == null)
            {
                throw new ArgumentNullException("request");
            }

            object property = request.GetProperties().FirstOrDefault(o => o is SelectedOperation);

            if (property != null)
            {
                SelectedOperation selectedOperation = property as SelectedOperation;
                return(selectedOperation.Name);
            }

            return(null);
        }