Table of Contents

Class AspNetResultExtensions

Namespace
Microsoft.AspNetCore.Mvc.Filters
Assembly
Cratis.Applications.dll

Extensions for ActionExecutingContext.

public static class AspNetResultExtensions
Inheritance
AspNetResultExtensions
Inherited Members

Methods

IsAspNetResult(ActionExecutingContext)

Check if an action has the with AspNetResultAttribute as filter.

public static bool IsAspNetResult(this ActionExecutingContext context)

Parameters

context ActionExecutingContext

ActionExecutingContext to check.

Returns

bool

True if it has, false if not.

ShouldIgnoreValidation(ActionExecutingContext)

Check if an action has the with IgnoreValidationAttribute as filter and should then ignore validation in the action filters.

public static bool ShouldIgnoreValidation(this ActionExecutingContext context)

Parameters

context ActionExecutingContext

ActionExecutingContext to check.

Returns

bool

True if it has, false if not.