DistributedCacheTagHelperService DistributedCacheTagHelperService Class

Definition

Implements IDistributedCacheTagHelperService and ensures multiple concurrent requests are gated. The entries are stored like this:
  • Int32 representing the hashed cache key size.
  • The UTF8 encoded hashed cache key.
  • The UTF8 encoded cached content.
public class DistributedCacheTagHelperService : IDistributedCacheTagHelperService
Public Class DistributedCacheTagHelperService
    Implements IDistributedCacheTagHelperService
Inheritance
DistributedCacheTagHelperServiceDistributedCacheTagHelperService
Implements

Constructors

DistributedCacheTagHelperService(IDistributedCacheTagHelperStorage, IDistributedCacheTagHelperFormatter, HtmlEncoder, ILoggerFactory) DistributedCacheTagHelperService(IDistributedCacheTagHelperStorage, IDistributedCacheTagHelperFormatter, HtmlEncoder, ILoggerFactory)

public DistributedCacheTagHelperService(IDistributedCacheTagHelperStorage storage, IDistributedCacheTagHelperFormatter formatter, HtmlEncoder HtmlEncoder, ILoggerFactory loggerFactory)
Public Sub New(storage As IDistributedCacheTagHelperStorage, formatter As IDistributedCacheTagHelperFormatter, HtmlEncoder As HtmlEncoder, loggerFactory As ILoggerFactory)
Parameters
HtmlEncoder
System.Text.Encodings.Web.HtmlEncoder System.Text.Encodings.Web.HtmlEncoder

Methods

Equals(Object) Equals(Object)

Inherited from Object

Equals(Object, Object) Equals(Object, Object)

Inherited from Object

GetHashCode() GetHashCode()

Inherited from Object

GetType() GetType()

Inherited from Object

MemberwiseClone() MemberwiseClone()

Inherited from Object

ProcessContentAsync(TagHelperOutput, CacheTagKey, DistributedCacheEntryOptions) ProcessContentAsync(TagHelperOutput, CacheTagKey, DistributedCacheEntryOptions)

Processes the html content of a distributed cache tag helper.
public Task<IHtmlContent> ProcessContentAsync(TagHelperOutput output, CacheTagKey key, DistributedCacheEntryOptions options)
Public Function ProcessContentAsync(output As TagHelperOutput, key As CacheTagKey, options As DistributedCacheEntryOptions) As Task(Of IHtmlContent)
Parameters
key
CacheTagKey CacheTagKey
The key in the storage.
Returns
A cached or new content for the cache tag helper.

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from Object

ToString() ToString()

Inherited from Object