How to programatically record the start and end of an MVC FileResult for logging of incomplete downl
- by Richard
Hi,
I have been investigating how My ASP.NET MVC application can log unsuccessful / incomplete downloads. I have a controller handling the file requests which currently returns a FileResult. What I need to record is the IPAddress, filename and when the download started, then the same data and when it completed. I have looked at intercepting the request start and end with an HttpModule and also IIS7 failed request tracing but am not sure which route would be best and have this feeling that maybe I am missing an obvious answer to the problem.
Does anyone have any suggestions or know of any alternatives as this seems like something many people would want to know from their web server?
Thanks for your help