RetrieveRequestHandlerBase<TRow,TRetrieveRequest,TRetrieveResponse> class
namespace: Serenity.Services assembly: Serenity.Net.Services
Abstract base class for retrieve request handlers that share state and mode neutral helper methods between synchronous and asynchronous retrieve request handlers.
public abstract class RetrieveRequestHandlerBase<TRow, TRetrieveRequest, TRetrieveResponse> :
IRetrieveRequestHandler
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 |
| Cache { get; } |
Gets the two level cache from the request context. |
| Connection { get; protected set; } |
Gets the current connection. |
| Context { get; } |
Gets the request context. |
| Localizer { get; } |
Gets the localizer from the request context. |
| Permissions { get; } |
Gets the permission service from the request context. |
| Query { get; protected set; } |
Gets the select query. |
| Request { get; protected set; } |
Gets the request object. |
| Response { get; protected set; } |
Gets the response object. |
| Row { get; protected set; } |
Gets the entity used for querying / metadata lookup. |
| StateBag { get; } |
A state bag for behaviors to preserve state among their methods. It will be cleared before each request, e.g. Process call. |
| User { get; } |
Gets the current user from the request context. |
Protected Members
See Also