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

Popular posts from this blog

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -