c# - How to stop server process during a post on client side? -
i develop asp .net/c# mvc4 application users can click on button (post) let server running algorithm`.
the process can long (several minutes) , if user closes window/stop loading server keeps running and, in application, insert data in db.
i asked myself how possible stop server process application ? mean, if user realizes doesn't want run process anymore , likes stop insertion in database, how can ?
you can create static class/singleton in service layer methods run , stop long process. in controller can make actions manage singleton user requests.
Comments
Post a Comment