The base class for request handlers.
More...
|
| BaseRequestHandler (IAuthleteApi api) |
| Constructor with an implementation of the IAuthleteApi interface. The given value can be referred to as the value of the Api property later. More...
|
|
|
HttpResponseMessage | UnknownAction (string apiPath) |
| A utility method to generate an HttpResponseMessage instance with "500 Internal Server Error" and an error message in JSON. This method is expected to be used when the value of the "action" parameter in a response from an Authlete API holds an unexpected value. More...
|
|
|
IAuthleteApi | Api [get] |
| The implementation of the IAuthleteApi interface. It is the value given to the constructor. More...
|
|
The base class for request handlers.
◆ BaseRequestHandler()
Constructor with an implementation of the IAuthleteApi
interface. The given value can be referred to as the value of the Api
property later.
- Parameters
-
api | An implementation of the IAuthleteApi interface. |
◆ UnknownAction()
HttpResponseMessage UnknownAction |
( |
string |
apiPath | ) |
|
|
inlineprotected |
A utility method to generate an HttpResponseMessage
instance with "500 Internal Server Error" and an error message in JSON. This method is expected to be used when the value of the "action"
parameter in a response from an Authlete API holds an unexpected value.
- Returns
- An
HttpResponseMessage
which represents a server error.
- Parameters
-
apiPath | The path of an Authlete API. |
◆ Api
The implementation of the IAuthleteApi
interface. It is the value given to the constructor.
The implementation of the IAuthleteApi
interface.
The documentation for this class was generated from the following file:
- Authlete/Handler/BaseRequestHandler.cs