Suoranta.EnterpriseLib.Web - Developer API

IFilterBindingWhenSyntax<(Of <(<'T>)>)>..::..When Method (Func<(Of <(<'IRequest, Boolean>)>)>)

Indicates that the binding should be used only for requests that support the specified condition.

Namespace:  Suoranta.EnterpriseLib.Web.AppDomain.Ninject.Mvc.FilterBindingSyntax
Assembly:  Suoranta.EnterpriseLib.Web (in Suoranta.EnterpriseLib.Web.dll)

Syntax


IFilterBindingInNamedWithOrOnSyntax<T> When(
	Func<IRequest, bool> condition
)

Parameters

condition
Type: Func<(Of <(<'IRequest, Boolean>)>)>
The condition.

Return Value

The fluent syntax to define more information