ChecksumBuilderExtensions Class
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Data.Integrity
- Assemblies
- Cuemon.Extensions.AspNetCore.dll
Extension methods for the ChecksumBuilder class.
public static class ChecksumBuilderExtensions
- Inheritance
-
ChecksumBuilderExtensions
Examples
The following example demonstrates how to create an EntityTagHeaderValue from a ChecksumBuilder instance.
using Cuemon.Data.Integrity;
using Cuemon.Extensions.AspNetCore.Data.Integrity;
using Microsoft.Net.Http.Headers;
namespace Examples;
public class EntityTagExample
{
public EntityTagHeaderValue CreateEntityTag(ChecksumBuilder builder)
{
return builder.ToEntityTagHeaderValue();
}
public EntityTagHeaderValue CreateWeakEntityTag(ChecksumBuilder builder)
{
return builder.ToEntityTagHeaderValue(isWeak: true);
}
}
Methods
| Name | Description |
|---|---|
| ToEntityTagHeaderValue(ChecksumBuilder, bool) | Creates an EntityTagHeaderValue from the specified |