Skip to content

IListBehaviorAsync interface

namespace: Serenity.Services   assemblySerenity.Net.Services

An asynchronous list behavior that can be used as a mixin within a ListRequestHandlerAsync lifecycle

public interface IListBehaviorAsync : IListBehavior

Members

name description
OnAfterExecuteQueryAsync(…) Called after query is sent to database
OnApplyFiltersAsync(…) Called when filters are applied to query
OnBeforeExecuteQueryAsync(…) Called just before query is sent to database
OnPrepareQueryAsync(…) Called when query is built
OnReturnAsync(…) Called before handler is returning the result
OnValidateRequestAsync(…) Called when list request is validated

Remarks

A list behavior instance is always cached and reused across requests, so make sure you don't store anything in private variables, and its operation is thread-safe. If you need to pass some state between events, use handler's StateBag.

See Also