ToEntityTagHeaderValue Method
Definition
- Namespace
- Cuemon.AspNetCore.Http.Headers
- Assemblies
- Cuemon.AspNetCore.dll
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
decoratorIDecorator<ChecksumBuilder>The IDecorator<T> to extend.
isWeakboolA 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
decoratorand a value that indicates if the tag is weak.
Exceptions
- ArgumentNullException
decoratorcannot be null.