Class PresetOnlyQueryCollectionRequestParser
Parses preset name from the request querystring and returns the commands configured for that preset.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Web.Commands
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public class PresetOnlyQueryCollectionRequestParser : IRequestParser
Constructors
| Edit this page View SourcePresetOnlyQueryCollectionRequestParser(IOptions<PresetOnlyQueryCollectionRequestParserOptions>)
Initializes a new instance of the PresetOnlyQueryCollectionRequestParser class.
Declaration
public PresetOnlyQueryCollectionRequestParser(IOptions<PresetOnlyQueryCollectionRequestParserOptions> presetOptions)
Parameters
Type | Name | Description |
---|---|---|
IOptions<PresetOnlyQueryCollectionRequestParserOptions> | presetOptions | The preset options. |
Fields
| Edit this page View SourceQueryKey
The command constant for the preset query parameter.
Declaration
public const string QueryKey = "preset"
Field Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceParseRequestCommands(HttpContext)
Returns a collection of commands from the current request.
Declaration
public CommandCollection ParseRequestCommands(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | Encapsulates all HTTP-specific information about an individual HTTP request. |
Returns
Type | Description |
---|---|
CommandCollection |