IsSuccessStatusCode Method
Definition
- Namespace
- Cuemon.AspNetCore.Http
- Assemblies
- Cuemon.AspNetCore.dll
IsSuccessStatusCode(IDecorator<int>)
Determines whether the enclosed int of the decorator is within the successful range.
public static bool IsSuccessStatusCode(this IDecorator<int> decorator)
Parameters
decoratorIDecorator<int>The IDecorator<T> to extend.
Returns
- bool
trueif the enclosed int of thedecoratorwas in the Successful range (200-299); otherwise,false.
Exceptions
- ArgumentNullException
decoratorcannot be null.