DeleteRequestHandlerAsync<TRow,TDeleteRequest,TDeleteResponse> class
namespace: Serenity.Services assembly: Serenity.Net.Services
Generic base class for asynchronous delete request handlers
public class DeleteRequestHandlerAsync<TRow, TDeleteRequest, TDeleteResponse> :
DeleteRequestHandlerBase<TRow, TDeleteRequest, TDeleteResponse>,
IDeleteHandlerAsync<TRow, TDeleteRequest, TDeleteResponse>, IDeleteRequestProcessorAsync
where TRow : class, IRow, IIdRow, new()
where TDeleteRequest : DeleteRequest
where TDeleteResponse : DeleteResponse, new()
| parameter | description |
|---|---|
| TRow | Entity type |
| TDeleteRequest | Delete request type |
| TDeleteResponse | Delete response type |
Public Members
| name | description |
|---|---|
| DeleteRequestHandlerAsync(…) | Initializes a new instance of the class. |
| DeleteAsync(…) | |
| ProcessAsync(…) | Processes the delete request asynchronously. This is the entry point for the handler. |
Protected Members
| name | description |
|---|---|
| behaviors | Lazy list of behaviors that is activated for this request. |
| virtual DoAuditAsync(…) | Performs auditing |
| virtual ExecuteDeleteAsync(…) | Executes the actual SQL delete operation |
| virtual InvokeDeleteActionAsync(…) | Invokes the passed delete action method |
| virtual LoadEntityAsync(…) | Loads the entity that is going to be deleted |
| virtual OnAfterDeleteAsync(…) | Method that is executed after the actual SQL delete operation |
| virtual OnBeforeDeleteAsync(…) | Method that is executed before the actual SQL delete operation. |
| virtual OnReturnAsync(…) | The method that is called just before the response is returned. |
| virtual PrepareQueryAsync(…) | Prepares the query used to select the existing record |
| virtual ValidateRequestAsync(…) | Validates the parameters of the delete request. |
See Also
- class DeleteRequestHandlerBase<TRow,TDeleteRequest,TDeleteResponse>
- interface IDeleteHandlerAsync<TRow,TDeleteRequest,TDeleteResponse>
- interface IDeleteRequestProcessorAsync
- interface IRow
- interface IIdRow
- class DeleteRequest
- class DeleteResponse
- Source: DeleteRequestHandlerAsync.cs