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
| Edit this page View SourceImageCommandContext(HttpContext, CommandCollection, CommandParser, CultureInfo)
Initializes a new instance of the ImageCommandContext class.
Declaration
public ImageCommandContext(HttpContext context, CommandCollection commands, CommandParser parser, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | The current HTTP request context. |
CommandCollection | 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
| Edit this page View SourceCommands
Gets the collection of URI derived processing commands.
Declaration
public CommandCollection Commands { get; }
Property Value
Type | Description |
---|---|
CommandCollection |
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 |