IDeleteBehaviorAsync interface
namespace: Serenity.Services assembly: Serenity.Net.Services
An asynchronous delete behavior that can be used as a mixin within a DeleteRequestHandlerAsync lifecycle
public interface IDeleteBehaviorAsync : IDeleteBehavior
Members
| name | description |
|---|---|
| OnAfterDeleteAsync(…) | Called after row is deleted from database |
| OnAuditAsync(…) | Called after row is deleted and auditing should be performed |
| OnBeforeDeleteAsync(…) | Called just before row is deleted from database |
| OnPrepareQueryAsync(…) | Called when query to load old entity is built |
| OnReturnAsync(…) | Called before handler is returning the result |
| OnValidateRequestAsync(…) | Called when delete request is validated |
Remarks
A delete 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 IDeleteBehavior
- Source: IDeleteBehaviorAsync.cs