System.Web.Http.Common
Provides extension methods for the class.
Creates an wired up to the associated .
An initialized .
The HTTP request.
Creates an wired up to the associated .
An initialized .
The HTTP request.
The HTTP status code.
The class can be used to indicate properties about a route parameter (the literals and placeholders located within segments of a ). It can for example be used to indicate that a route parameter is optional.
Optional Parameter
Returns a that represents this instance.
A that represents this instance.
Utility class for creating, logging and unwrapping instances.
Creates an with the provided properties and logs it with .
The logged .
A composite format string explaining the reason for the exception.
An object array that contains zero or more objects to format.
Creates an with the provided properties and logs it with .
The logged .
The name of the parameter that caused the current exception.
A composite format string explaining the reason for the exception.
An object array that contains zero or more objects to format.
Creates an with the provided properties and logs it with .
The logged .
The name of the parameter that caused the current exception.
Creates an with the provided properties and logs it with .
The logged .
The name of the parameter that caused the current exception.
A composite format string explaining the reason for the exception.
An object array that contains zero or more objects to format.
Creates an with a default message and logs it with .
The logged .
The name of the parameter that caused the current exception.
Creates an with the provided properties and logs it with .
The logged .
The name of the parameter that caused the current exception.
The value of the argument that causes this exception.
A composite format string explaining the reason for the exception.
An object array that contains zero or more objects to format.
Creates an with a message saying that the argument must be less than or equal to maxValue and logs it with .
The logged .
The name of the parameter that caused the current exception.
The value of the argument that causes this exception.
The maximum size of the argument.
Creates an with a message saying that the argument must be greater than or equal to minValue and logs it with .
The logged .
The name of the parameter that caused the current exception.
The value of the argument that causes this exception.
The minimum size of the argument.
Creates an with a message saying that the argument must be an absolute URI without a query or fragment identifier and then logs it with .
The logged .
The name of the parameter that caused the current exception.
The value of the argument that causes this exception.
Creates an with a message saying that the argument must be an absolute URI and logs it with .
The logged .
The name of the parameter that caused the current exception.
The value of the argument that causes this exception.
Creates an with a message saying that the argument must be an "http" or "https" URI and logs it with .
The logged .
The name of the parameter that caused the current exception.
The value of the argument that causes this exception.
Unwraps and logs an as using <typeparamref name="TPreferredException" /> as the preferred unwrapped to return.
The unwrapped and logged exception.
The to unwrap and log
The preferred to unwrap. If not present then the first is returned instead.
Unwraps and logs an as .
The unwrapped and logged exception.
The exception to unwrap and log
Unwraps and logs an as using <typeparamref name="TPreferredException" /> as the preferred unwrapped to return.
The unwrapped and logged exception.
The to unwrap and log
The preferred to unwrap. If not present then the first is returned instead.
Unwraps and logs an as .
The unwrapped and logged exception.
The exception to unwrap and log
Unwraps and logs an as using <typeparamref name="TPreferredException" /> as the preferred unwrapped to return.
The unwrapped and logged exception.
The to unwrap and log
The preferred to unwrap. If not present then the first is returned instead.
Unwraps and logs an as .
The unwrapped and logged exception.
The exception to unwrap and log
Unwraps and logs an as using <typeparamref name="TPreferredException" /> as the preferred unwrapped to return.
The unwrapped and logged exception.
The to unwrap and log
The preferred to unwrap. If not present then the first is returned instead.
Unwraps and logs an as .
The unwrapped and logged exception.
The exception to unwrap and log
Formats the specified resource string using .
The formatted string.
A composite format string.
An object array that contains zero or more objects to format.
Creates an and logs it with .
The logged .
The name of the parameter that caused the current exception.
The value of the argument that failed.
A that represents the enumeration class with the valid values.
Creates an and logs it with .
The logged .
Inner exception
A composite format string explaining the reason for the exception.
An object array that contains zero or more objects to format.
Creates an and logs it with .
The logged .
A composite format string explaining the reason for the exception.
An object array that contains zero or more objects to format.
Creates an with a message saying that the key was not found and logs it with .
The logged .
Creates an with a message saying that the key was not found and logs it with .
The logged .
A composite format string explaining the reason for the exception.
An object array that contains zero or more objects to format.
Creates an and logs it with .
The logged .
A composite format string explaining the reason for the exception.
An object array that contains zero or more objects to format.
Creates an initialized according to guidelines and logs it with .
The logged .
A composite format string explaining the reason for the exception.
An object array that contains zero or more objects to format.
Creates an initialized with the provided parameters and logs it with .
The logged .
Creates an initialized with the provided parameters and logs it with .
The logged .
A composite format string explaining the reason for the exception.
An object array that contains zero or more objects to format.
Creates an with the provided properties and logs it with .
The logged .
Various helper methods for the static members of .
Gets the static instance for any given HTTP method name.
An existing static or a new instance if the method was not found.
The HTTP request method.
General purpose logging interface.
Logs the given exception at the given level under the given category.
The category under which to log the message. It can be empty but it cannot be null.
The at which to log the exception.
The to log. It cannot be null.