Class HmacTokenTagHelper
A Tag
Inherited Members
Namespace: SixLabors .ImageSharp .Web.TagHelpers
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
[HtmlTargetElement("img", Attributes = "src", TagStructure = TagStructure.WithoutEndTag)]
public class HmacTokenTagHelper : UrlResolutionTagHelper, ITagHelper, ITagHelperComponent
Constructors
| Edit this page View SourceHmacTokenTagHelper(IOptions<ImageSharpMiddlewareOptions>, RequestAuthorizationUtilities, IUrlHelperFactory, HtmlEncoder)
Initializes a new instance of the Hmac
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 encoder. |
Properties
| Edit this page View SourceOrder
When a set of ITag
Declaration
public override int Order { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
Remarks
Default order is 0
.
Src
Gets or sets the source of the image.
Declaration
[HtmlAttributeName("src")]
public string? Src { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
Passed through to the generated HTML in all cases.
Methods
| Edit this page View SourceProcess(TagHelperContext, TagHelperOutput)
Synchronously executes the Tagcontext
and
output
.
Declaration
public override void Process(TagHelperContext context, TagHelperOutput output)
Parameters
Type | Name | Description |
---|---|---|
TagHelperContext | context | Contains information associated with the current HTML tag. |
TagHelperOutput | output | A stateful HTML element used to generate an HTML tag. |