Table of Contents

ToEntityTagHeaderValue Method

Definition

ToEntityTagHeaderValue(IDecorator<ChecksumBuilder>, bool)

Creates an 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 bool

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

Returns

EntityTagHeaderValue

An 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

ArgumentNullException

decorator cannot be null.