Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call C# functions from anywhere using URL (HTTP server)
#20
Use function SetContentJson. Example - function Json. Another example (not tested):

Code:
Copy      Help
    public static void GetFilePath(RFilename j, HSResponse r) {
        r.SetContentJson(new { Path = $"D:\\{j.FileName}.pdf" }); //return JSON
    }
    public record RFilename(string FileName);


Messages In This Thread
RE: Call C# functions from anywhere using URL (HTTP server) - by Gintaras - 05-09-2024, 01:10 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)