Class DataModelJsonPluginEndPoint<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.
Inherited Members
Namespace: Artemis.Core.Services
Assembly: Artemis.Core.dll
Syntax
public class DataModelJsonPluginEndPoint<T> : PluginEndPoint where T : DataModel, new()
Type Parameters
Name | Description |
---|---|
T |
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 Newtonsoft.Json.JsonException.
Declaration
public bool ThrowOnFail { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
ProcessRequest(IHttpContext)
Called whenever the end point has to process a request
Declaration
protected override Task ProcessRequest(IHttpContext context)
Parameters
Type | Name | Description |
---|---|---|
IHttpContext | context | The HTTP context of the request |
Returns
Type | Description |
---|---|
Task |