D
D
Deenovi2019-10-05 14:57:02
User interface
Deenovi, 2019-10-05 14:57:02

C# Web interface for application?

Hello, please help me to solve the problem. There is a desktop application to which various modules are connected.
One of the modules should be the Web interface to this application.
I can’t find adequate information on how to implement a self-hosted Web interface for a stationary application. Those. I would like to have a module in the Dll format, which does not pull any folders with the necessary resources, and when connected, the web interface would be deployed. Those. so that all the necessary materials can be pulled from resources.
I tried NancyFX, but I did not find information that would allow me to implement what I need. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Griboks, 2019-10-05
@Griboks

If you need a window with a beautiful html interface, then in addition to the ideas already expressed, you can use specially sharpened things for this, for example, CefSharp (chrome).
And if you need to set up a local http server with resources in memory in order to access it through a browser, then a standard http server will help you, or even a socket server, or just raw sockets.
The idea is simple: you receive a request ala http get myfile.png, and return or pre-packed into memory / dll bytes. File.ReadAllBytes("myfile.png")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question