Header menu logo Falco.UnionRoutes

SkipPreconditionAttribute Type

Skip a specific OverridablePreCondition<'T> precondition type for this route case.

PreCondition<'T> (strict preconditions) are NOT affected - they always run.

Can be applied multiple times to skip multiple precondition types.

Example

 type AdminRoute =
     | Dashboard                                         // requires all
     | [<SkipPrecondition(typeof<AdminId>)>] Profile     // skips OverridablePreCondition<AdminId> only
type AdminRoute = | Dashboard | Profile
val typeof<'T> : System.Type

Constructors

Constructor Description

SkipPreconditionAttribute(preconditionType)

Full Usage: SkipPreconditionAttribute(preconditionType)

Parameters:
    preconditionType : Type

Returns: SkipPreconditionAttribute
preconditionType : Type
Returns: SkipPreconditionAttribute

Instance members

Instance member Description

this.PreconditionType

Full Usage: this.PreconditionType

Returns: Type

Gets the inner type of the OverridablePreCondition<'T> to skip.

Returns: Type

Type something to start searching.