2using System.Threading.Tasks;
30 return OutputType == MarkdownOutputType.Html ? Grade.Ok :
Grade.NotAtAll;
46 if (
string.IsNullOrEmpty(Title))
51 Output.Append(
"<div id=\"id");
55 Output.AppendLine(
"</div>");
56 Output.Append(
"<script type=\"text/javascript\">LoadContent(\"");
58 Output.AppendLine(
"\");</script>");
static Task< string > ToHtml(string Markdown)
Converts a Markdown snippet to a HTML snippet.
Contains a markdown document. This markdown document class supports original markdown,...
MarkdownSettings Settings
Markdown settings.
Variables Variables
Collection of variables. Providing such a collection enables script execution inside markdown documen...
Helps with common XML-related tasks.
static string HtmlValueEncode(string s)
Differs from Encode(String), in that it does not encode the aposotrophe or the quote.
The ClientEvents class allows applications to push information asynchronously to web clients connecte...
static Task ReportAsynchronousResult(string Id, string ContentType, byte[] Result)
Reports asynchronously evaluated result back to a client.
Pushes asynchronously generated HTML content to clients
async Task< string > GenerateStub(MarkdownOutputType Type, StringBuilder Output, string Title, MarkdownDocument Document)
Generates a stub in the output, that will be filled with the asynchronously generated content,...
Task ReportResult(MarkdownOutputType Type, string Id, string Result)
Method called when asynchronous result has been generated in a Markdown document.
Grade Supports(MarkdownOutputType OutputType)
How well specific content type is supported.
AsyncMarkdownHtmlContent()
Pushes asynchronously generated HTML content to clients
Task ReportResult(MarkdownOutputType Type, string Id, string Result, bool More)
Method called when asynchronous result has been generated in a Markdown document.
Static class managing the runtime environment of the IoT Gateway.
static byte[] NextBytes(int NrBytes)
Generates an array of random bytes.
Contains methods for simple hash calculations.
static string BinaryToString(byte[] Data)
Converts an array of bytes to a string with their hexadecimal representations (in lower case).
Interface for classes that help output asynchronous markdown output.
MarkdownOutputType
Markdown output type.