Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Ok, so I have quite a task here:

The background of this project is very complex and fully covered by NDA's so I'll just state what I am trying to do without the background.

So what I need is a way to record every request made to an MVC application and every response from it.

Furthermore, I also need a way to "reply" the requests exactly as they were sent.

I was hoping that I could create some solution that "loads" the MVC application, Self hosts or runs in IIS, get requests, records them and passed them verbatum to the MVC application which would then act exactly like any other MVC app.

I could then create a second solution that "loads" the MVC app but instead of opening it up to request it would read the events from the event store and "replays" them in the MVC app.


Now I have no clue where to even start. This kinda think is way out of my comfort zone.

If there is another solution for how I can record and replay request (and responses) then please let me know.

Even if there is a way to intercept a request in MVC before it starts doing all of its authentication and routing malarkey then that would be a great starting point. I would also need to know where I can capture the response at the very last second before it is sent.

Many thanks for your time
Andy

What I have tried:

I tried to find a "start" and an "end" point in as MVC app, but I'm pretty noob with them >_<
Posted
Comments
F-ES Sitecore 8-Dec-17 10:57am    
Have a google for "mvc action filters", they help you intercept actions and also their responses.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900