asp.net - AsyncTimeoutAttribute is not working with Controller Actions -
we tried use following code increase request timeout our backup process runs on iis
, asp.net mvc
:
[asynctimeout(79200000)] public async task<actionresult> dailybackup(guid secret) { httpcontext.server.scripttimeout = 22*3600; await backups.create(); return null; }
however, didn't change timeout , after short period of time, asp.net mvc
returns empty page , await backups.create()
continue run separately in background.
what should in order increase timeout actions without changing our web.config
file?
Comments
Post a Comment