Table of Contents

Class ChecksumBuilderExtensions

Namespace
Cuemon.Extensions.AspNetCore.Data.Integrity
Assembly
Cuemon.Extensions.AspNetCore.dll

Extension methods for the ChecksumBuilder class.

public static class ChecksumBuilderExtensions
Inheritance
Object
ChecksumBuilderExtensions

Methods

ToEntityTagHeaderValue(ChecksumBuilder, Boolean)

Creates an Microsoft.Net.Http.Headers.EntityTagHeaderValue from the specified builder.

public static EntityTagHeaderValue ToEntityTagHeaderValue(this ChecksumBuilder builder, bool isWeak = false)

Parameters

builder ChecksumBuilder

The ChecksumBuilder to extend.

isWeak Boolean

A value that indicates if this entity-tag header is a weak validator.

Returns

EntityTagHeaderValue

An Microsoft.Net.Http.Headers.EntityTagHeaderValue that is initiated with a hexadecimal representation of Checksum and a value that indicates if the tag is weak.

Exceptions

System.ArgumentNullException

builder cannot be null.