mardi 21 février 2017

c# , How run windows form together simple server?

I created one application that provide html/js/css front and use only API to fill, i use angular. The problem is when i use angular ngview , because it need Ajax to load partials views. only way it ´s to use a server. I think run a small web server created on c# and run the widowsform together with the server. When the app close the server stop also. But i dont know how to implement the server at the same time that the windows form run.

I have separate server and widnowsform running, but when i try use the class of server o n the windowsform class only run the server.

I know yet node webkit, electron and more .. but only i m learning and testing this idea.

I think in multiple options , for example separated proyects in the solutions. But the principal idea it is the only exe file .

thanks




Aucun commentaire:

Enregistrer un commentaire