Class HmacTokenTagHelper
A
Namespace: SixLabors.ImageSharp.Web.TagHelpers
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public class HmacTokenTagHelper : UrlResolutionTagHelper
Constructors
| Improve this Doc View SourceHmacTokenTagHelper(IOptions<ImageSharpMiddlewareOptions>, RequestAuthorizationUtilities, IUrlHelperFactory, HtmlEncoder)
Initializes a new instance of the HmacTokenTagHelper class.
Declaration
public HmacTokenTagHelper(IOptions<ImageSharpMiddlewareOptions> options, RequestAuthorizationUtilities authorizationUtilities, IUrlHelperFactory urlHelperFactory, HtmlEncoder htmlEncoder)
Parameters
Type | Name | Description |
---|---|---|
IOptions<ImageSharpMiddlewareOptions> | options | The middleware configuration options. |
RequestAuthorizationUtilities | authorizationUtilities | Contains helpers that allow authorization of image requests. |
IUrlHelperFactory | urlHelperFactory | The URL helper factory. |
HtmlEncoder | htmlEncoder | The HTML encorder. |
Properties
| Improve this Doc View SourceOrder
Declaration
public override int Order { get; }
Property Value
Type | Description |
---|---|
Int32 |
Src
Gets or sets the source of the image.
Declaration
public string? Src { get; set; }
Property Value
Type | Description |
---|---|
Nullable<String> |
Remarks
Passed through to the generated HTML in all cases.
Methods
| Improve this Doc View SourceProcess(TagHelperContext, TagHelperOutput)
Declaration
public override void Process(TagHelperContext context, TagHelperOutput output)
Parameters
Type | Name | Description |
---|---|---|
TagHelperContext | context | |
TagHelperOutput | output |