Class ParameterRetriever
Defines a type that can retrieve a request parameter given a request context
Namespace: Seltzr.ParameterRetrievers
Assembly: Seltzr.dll
Syntax
C#
public abstract class ParameterRetriever
Constructors
Initializes a new instance of the ParameterRetriever class.
C#
protected ParameterRetriever(string name, string defaultValue = null)
Parameters
name
String
The name of the parameter to retrieve
defaultValue
String
The default value of the parameter if none is specified
Properties
Gets the default value of the parameter if none is specified
C#
protected string DefaultValue { get; }
Property Value
StringGets the name of the parameter to retrieve
C#
protected string ParameterName { get; }
Property Value
StringMethods
Gets the value of a parameter for the given request
C#
public abstract string GetValue(HttpRequest request)
Parameters
request
HttpRequest
The HTTP request context
Returns
The retrieved parameter value