Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call C# functions from anywhere using URL (HTTP server)
#22
The HTTP server returns JSON.

I also updated the server code. Now you can return JSON even easier. Example:
Code:
Copy      Help
    [return: JSON]
    public static object GetFilePath(RFilename j) => new { Path = $"D:\\{j.FileName}.pdf" };
    public record RFilename(string FileName);


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

Forum Jump:


Users browsing this thread: 1 Guest(s)