Class JsonPluginEndPoint<T>
Represents a plugin web endpoint receiving an object of type T and returning any
object or null.
Note: Both will be deserialized and serialized respectively using JSON.
public class JsonPluginEndPoint<T> : PluginEndPoint
Type Parameters
T
- Inheritance
-
objectJsonPluginEndPoint<T>
- Inherited Members
Properties
ThrowOnFail
Whether or not the end point should throw an exception if deserializing the received JSON fails. If set to false malformed JSON is silently ignored; if set to true malformed JSON throws a JsonException.
public bool ThrowOnFail { get; set; }
Property Value
Methods
ProcessRequest(IRequest)
Called whenever the end point has to process a request
protected override Task<IResponse> ProcessRequest(IRequest request)
Parameters
requestIRequestThe HTTP context of the request
Returns
- Task<IResponse>