Table of Contents

Class ChecksumBuilderDecoratorExtensions

Namespace
Cuemon.AspNetCore.Http.Headers
Assembly
Cuemon.AspNetCore.dll

Extension methods for the ChecksumBuilder class hidden behind the IDecorator<T> interface.

public static class ChecksumBuilderDecoratorExtensions
Inheritance
Object
ChecksumBuilderDecoratorExtensions

Methods

ToEntityTagHeaderValue(IDecorator<ChecksumBuilder>, Boolean)

Creates an Microsoft.Net.Http.Headers.EntityTagHeaderValue from the enclosed ChecksumBuilder of the decorator.

public static EntityTagHeaderValue ToEntityTagHeaderValue(this IDecorator<ChecksumBuilder> decorator, bool isWeak = false)

Parameters

decorator IDecorator<ChecksumBuilder>

The IDecorator<T> 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 the enclosed ChecksumBuilder of the decorator and a value that indicates if the tag is weak.

Exceptions

System.ArgumentNullException

decorator cannot be null.

See Also