Artemis Artemis
Artemis Artemis

Search Results for

    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.

    Inheritance
    object
    PluginEndPoint
    DataModelJsonPluginEndPoint<T>
    Inherited Members
    PluginEndPoint.OnRequestException(Exception)
    PluginEndPoint.OnProcessingRequest(IHttpContext)
    PluginEndPoint.OnProcessedRequest(IHttpContext)
    PluginEndPoint.Name
    PluginEndPoint.Url
    PluginEndPoint.PluginFeature
    PluginEndPoint.PluginInfo
    PluginEndPoint.Accepts
    PluginEndPoint.Returns
    PluginEndPoint.RequestException
    PluginEndPoint.ProcessingRequest
    PluginEndPoint.ProcessedRequest
    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
    Overrides
    PluginEndPoint.ProcessRequest(IHttpContext)
    Content is available under the PolyForm Noncommercial License, by Artemis RGB.