Skip to content

RetrieveRequestHandlerAsync<TRow,TRetrieveRequest,TRetrieveResponse> class

namespace: Serenity.Services   assemblySerenity.Net.Services

Generic base class for asynchronous retrieve request handlers

public class RetrieveRequestHandlerAsync<TRow, TRetrieveRequest, TRetrieveResponse> : 
    RetrieveRequestHandlerBase<TRow, TRetrieveRequest, TRetrieveResponse>, 
    IRetrieveHandlerAsync<TRow, TRetrieveRequest, TRetrieveResponse>, IRetrieveRequestProcessorAsync
    where TRow : class, IRow, new()
    where TRetrieveRequest : RetrieveRequest
    where TRetrieveResponse : RetrieveResponse<TRow>, new()
parameter description
TRow Entity type
TRetrieveRequest Retrieve request type
TRetrieveResponse Retrieve response type

Public Members

name description
RetrieveRequestHandlerAsync(…) Initializes a new instance of the class.
ProcessAsync(…) Processes the retrieve request asynchronously. This is the entry point for the handler.
RetrieveAsync(…)

Protected Members

name description
behaviors- Lazy list of behaviors that is activated for this request.
virtual ExecuteQueryAsync(…) Executes the query and sets the response entity if found.
virtual OnAfterExecuteQueryAsync(…) Called after executing the retrieve query
virtual OnBeforeExecuteQueryAsync(…) Called before executing the retrieve query
virtual OnReturnAsync(…) Called just before returning the response
virtual PrepareQueryAsync(…) Prepares query by selecting fields.
virtual ValidateRequestAsync(…) Validates the request by checking permissions.

See Also