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
| Improve this Doc 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
| Improve this Doc View SourceQueryKey
The command constant for the preset query parameter.
Declaration
public const string QueryKey = "preset"
Field Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc 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 |