Hi.
I build a web application which get data from a server and display it.
Once we connect to the server it sends us event each time the data change.
Now I manage to get the data on a file, but I don t know how to display it on the View.
How to display event on a MVC View
Global.cs
protectes void Application_Start(){
// connect to the server and request data
// server use event handler to send data
server.Received+= server_receiced_handler
}
private static void server_received_handler(){
using (StreamWrite fileAp=new StreamWriter(path:"D:\file.txt", append:true))
{
fileAp.WriteLine($"result is : {e.toString()});
}
}
Thank you very much