Table of Contents

Class Int32DecoratorExtensions

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

Extension methods for the System.Int32 struct hidden behind the IDecorator<T> interface.

public static class Int32DecoratorExtensions
Inheritance
Object
Int32DecoratorExtensions

Methods

IsClientErrorStatusCode(IDecorator<Int32>)

Determines whether the enclosed System.Int32 of the decorator is within the client error related range.

public static bool IsClientErrorStatusCode(this IDecorator<int> decorator)

Parameters

decorator IDecorator<Int32>

The IDecorator<T> to extend.

Returns

Boolean

true if the enclosed System.Int32 of the decorator was in the Client Error range (400-499); otherwise, false.

Exceptions

System.ArgumentNullException

decorator cannot be null.

IsInformationStatusCode(IDecorator<Int32>)

Determines whether the enclosed System.Int32 of the decorator is within the informational range.

public static bool IsInformationStatusCode(this IDecorator<int> decorator)

Parameters

decorator IDecorator<Int32>

The IDecorator<T> to extend.

Returns

Boolean

true if the enclosed System.Int32 of the decorator was in the Information range (100-199); otherwise, false.

Exceptions

System.ArgumentNullException

decorator cannot be null.

IsNotModifiedStatusCode(IDecorator<Int32>)

Determines whether the enclosed System.Int32 of the decorator equals a 304 Not Modified.

public static bool IsNotModifiedStatusCode(this IDecorator<int> decorator)

Parameters

decorator IDecorator<Int32>

The IDecorator<T> to extend.

Returns

Boolean

true if the enclosed System.Int32 of the decorator is NotModified (304); otherwise, false.

Exceptions

System.ArgumentNullException

decorator cannot be null.

IsRedirectionStatusCode(IDecorator<Int32>)

Determines whether the enclosed System.Int32 of the decorator is within the redirecting range.

public static bool IsRedirectionStatusCode(this IDecorator<int> decorator)

Parameters

decorator IDecorator<Int32>

The IDecorator<T> to extend.

Returns

Boolean

true if the enclosed System.Int32 of the decorator was in the Redirection range (300-399); otherwise, false.

Exceptions

System.ArgumentNullException

decorator cannot be null.

IsServerErrorStatusCode(IDecorator<Int32>)

Determines whether the enclosed System.Int32 of the decorator is within the server error related range.

public static bool IsServerErrorStatusCode(this IDecorator<int> decorator)

Parameters

decorator IDecorator<Int32>

The IDecorator<T> to extend.

Returns

Boolean

true if the enclosed System.Int32 of the decorator was in the Server Error range (500-599); otherwise, false.

Exceptions

System.ArgumentNullException

decorator cannot be null.

IsSuccessStatusCode(IDecorator<Int32>)

Determines whether the enclosed System.Int32 of the decorator is within the successful range.

public static bool IsSuccessStatusCode(this IDecorator<int> decorator)

Parameters

decorator IDecorator<Int32>

The IDecorator<T> to extend.

Returns

Boolean

true if the enclosed System.Int32 of the decorator was in the Successful range (200-299); otherwise, false.

Exceptions

System.ArgumentNullException

decorator cannot be null.

See Also