IDistributedCacheTagHelperFormatter IDistributedCacheTagHelperFormatter Interface

Definition

An implementation of this interface provides a service to serialize html fragments for being store by IDistributedCacheTagHelperStorage
public interface IDistributedCacheTagHelperFormatter
Public Interface IDistributedCacheTagHelperFormatter

Methods

DeserializeAsync(Byte[]) DeserializeAsync(Byte())

Deserialize some html content.
Task<HtmlString> DeserializeAsync(byte[] value)
Function DeserializeAsync(value As Byte()) As Task(Of HtmlString)
Parameters
value
Byte[] Byte()
The value to deserialize.
Returns
The deserialized content, null otherwise.

SerializeAsync(DistributedCacheTagHelperFormattingContext) SerializeAsync(DistributedCacheTagHelperFormattingContext)

Serializes some html content.
Task<byte[]> SerializeAsync(DistributedCacheTagHelperFormattingContext context)
Function SerializeAsync(context As DistributedCacheTagHelperFormattingContext) As Task(Of Byte())
Parameters
Returns
Task<Byte[]> Task(Of Byte())
The serialized result.