BaseRequestHandler class
namespace: Serenity.Services assembly: Serenity.Net.Services
An abstract class that can be used as base for request handlers that accept a IRequestContext instance.
public abstract class BaseRequestHandler : IRequestHandler
| parameter | description |
|---|---|
| context | Request context |
Protected Members
| name | description |
|---|---|
| BaseRequestHandler(…) | An abstract class that can be used as base for request handlers that accept a IRequestContext instance. |
| Cache { get; } | Gets the cache from the request context. |
| Context { get; } | Gets the request context. |
| Localizer { get; } | Gets the text localizer from the request context. |
| Permissions { get; } | Gets the permission service from the request context. |
| User { get; } | Gets the user from the request context. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | context is null. |
Remarks
Initializes a new instance of the class.
See Also
- interface IRequestHandler
- Source: BaseRequestHandler.cs