Skip to content

UndeleteRequestHandlerAsync<TRow,TUndeleteRequest,TUndeleteResponse> class

namespace: Serenity.Services   assemblySerenity.Net.Services

Generic base class for asynchronous undelete request handlers

public class UndeleteRequestHandlerAsync<TRow, TUndeleteRequest, TUndeleteResponse> : 
    UndeleteRequestHandlerBase<TRow, TUndeleteRequest, TUndeleteResponse>, 
    IUndeleteHandlerAsync<TRow, TUndeleteRequest, TUndeleteResponse>, IUndeleteRequestProcessorAsync
    where TRow : class, IRow, IIdRow, new()
    where TUndeleteRequest : UndeleteRequest
    where TUndeleteResponse : UndeleteResponse, new()
parameter description
TRow Entity type
TUndeleteRequest Undelete request type
TUndeleteResponse Undelete response type

Public Members

name description
UndeleteRequestHandlerAsync(…) Initializes a new instance of the class.
ProcessAsync(…) Processes the undelete request asynchronously. This is the entry point for the handler.
UndeleteAsync(…)

Protected Members

name description
behaviors Lazy list of behaviors that is activated for this request.
virtual DoAuditAsync(…) Performs auditing
virtual ExecuteUndeleteAsync(…) Executes the actual SQL undelete/update operation
virtual InvokeUndeleteActionAsync(…) Invokes the passed undelete action method
virtual LoadEntityAsync(…) Loads the entity that is going to be undeleted
virtual OnAfterUndeleteAsync(…) Method that is executed after the actual SQL undelete operation
virtual OnBeforeUndeleteAsync(…) Method that is executed before the actual SQL undelete 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 undelete request.

See Also