private void OnIndex(KestrelRoutableContext context, KestrelRoutableRequest request, KestrelRoutableResponse response)
 {
     Logger.LogDebug("Sent client a 'Hello World'");
     response.Write("Hello World");
 }
Beispiel #2
0
 private bool OnTestPost(KestrelRoutableContext ctx, KestrelRoutableRequest req, KestrelRoutableResponse resp)
 {
     if (req.Form.TryGetValue("my-parameter", out var value) == true)
     {
         resp.Write($"Value: {value.FirstOrDefault() ?? "<null>"}");
         return(true);
     }
     else
     {
         return(false);
     }
 }