Artemis Artemis
Artemis Artemis

Search Results for

    Class RawPluginEndPoint

    Represents a plugin web endpoint that handles a raw EmbedIO.IHttpContext.

    Note: This requires that you reference the EmbedIO Nuget package.

    Inheritance
    object
    PluginEndPoint
    RawPluginEndPoint
    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 RawPluginEndPoint : PluginEndPoint

    Properties

    RequestHandler

    Gets or sets the handler used to handle incoming requests to this endpoint

    Declaration
    public Func<IHttpContext, Task> RequestHandler { get; }
    Property Value
    Type Description
    Func<IHttpContext, Task>

    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)

    SetAcceptType(string)

    Sets the mime type this plugin end point accepts

    Declaration
    public void SetAcceptType(string type)
    Parameters
    Type Name Description
    string type

    SetReturnType(string)

    Sets the mime type this plugin end point returns

    Declaration
    public void SetReturnType(string type)
    Parameters
    Type Name Description
    string type
    Content is available under the PolyForm Noncommercial License, by Artemis RGB.