Skip to main content

AltaConsoleModule

A class in Root.Township, Alta.WebServer.

Server web module for the REST console: takes a POST with a bearer console token and a command, runs it on the main thread and writes back the result.

Constructors​

MemberWhat it is
AltaConsoleModule(string path)Creates an AltaConsoleModule from path.

Fields​

1 private and internal field
MemberWhat it is
private static Logger loggerClass logger.

Properties​

MemberWhat it is
override bool IsFinalHandler { get; }True: no later module handles the request.

Methods​

MemberWhat it is
protected override async Task OnRequestAsync(IHttpContext context)Rejects non POST requests and invalid tokens, then runs the command as the token's user and returns the result as JSON.