IRetrieveBehavior interface
namespace: Serenity.Services assembly: Serenity.Net.Services
A retrieve behavior that can be used as a mixin within a RetrieveRequestHandler lifecycle
public interface IRetrieveBehavior
Members
name | description |
---|---|
OnAfterExecuteQuery(…) | Called after query is sent to database |
OnBeforeExecuteQuery(…) | Called just before query is sent to database |
OnPrepareQuery(…) | Called when query to is built |
OnReturn(…) | Called before handler is returning the result |
OnValidateRequest(…) | 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
- Source: IRetrieveBehavior.cs