IRetrieveBehaviorAsync interface
namespace: Serenity.Services assembly: Serenity.Net.Services
An asynchronous retrieve behavior that can be used as a mixin within a RetrieveRequestHandlerAsync lifecycle
public interface IRetrieveBehaviorAsync : IRetrieveBehavior
Members
| name | description |
|---|---|
| OnAfterExecuteQueryAsync(…) | Called after query is sent to database |
| 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 retrieve request is validated |
Remarks
A retrieve 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
- interface IRetrieveBehavior
- Source: IRetrieveBehaviorAsync.cs