Class ImageCommandContext
Contains information about the current image request and parsed commands.
Inherited Members
Namespace: SixLabors.ImageSharp.Web.Middleware
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public class ImageCommandContext
Constructors
| Improve this Doc View SourceImageCommandContext(HttpContext, IDictionary<String, String>, CommandParser, CultureInfo)
Initializes a new instance of the ImageCommandContext class.
Declaration
public ImageCommandContext(HttpContext context, IDictionary<string, string> commands, CommandParser parser, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | The current HTTP request context. |
IDictionary<String, String> | commands | The dictionary containing the collection of URI derived processing commands. |
CommandParser | parser | The command parser for parsing URI derived processing commands. |
CultureInfo | culture | The culture used to parse commands. |
Properties
| Improve this Doc View SourceCommands
Gets the dictionary containing the collection of URI derived processing commands.
Declaration
public IDictionary<string, string> Commands { get; }
Property Value
Type | Description |
---|---|
IDictionary<String, String> |
Context
Gets the current HTTP request context.
Declaration
public HttpContext Context { get; }
Property Value
Type | Description |
---|---|
HttpContext |
Culture
Gets the culture used for parsing commands.
Declaration
public CultureInfo Culture { get; }
Property Value
Type | Description |
---|---|
CultureInfo |
Parser
Gets the command parser for parsing URI derived processing commands.
Declaration
public CommandParser Parser { get; }
Property Value
Type | Description |
---|---|
CommandParser |