Table of Contents

Class JsonPluginEndPoint<T>

Namespace
Artemis.Core.Services
Assembly
Artemis.Core.dll

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
object
JsonPluginEndPoint<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

bool

Methods

ProcessRequest(IRequest)

Called whenever the end point has to process a request

protected override Task<IResponse> ProcessRequest(IRequest request)

Parameters

request IRequest

The HTTP context of the request

Returns

Task<IResponse>