Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Communication layer between client and server

I'd like to know if there is any technology to control communications between the client and the server in a web application (ASP.NET)

Example:

  • Number of requests
  • Check that no repeat a request
  • Check that an operation was performed

WorkFlow

  1. The client sends the request "A"
  2. The server receives the request "A", and responds
  3. The server marks the request "A" as answered
  4. The client resends the request "A"
  5. The server answers that the request "A" was answered
like image 982
Alejandro Mosquera Avatar asked Dec 09 '25 06:12

Alejandro Mosquera


1 Answers

You could intercept the request in the following method, in the Global.asax file:

    protected void Application_BeginRequest(object sender, EventArgs e)
    {
        var request = ((System.Web.HttpApplication)(sender)).Context.Request;
        //here you can evaluate and take decisions about the request
    }
like image 88
Alex Filipovici Avatar answered Dec 10 '25 20:12

Alex Filipovici



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!