what is the right way to spawn thread for database IO in asmx web service?

前端 未结 2 1931
面向向阳花
面向向阳花 2021-01-23 10:50

I have a short lock guarded section in a method (that serves the request entirely) that makes all initializations (etc. log-related). So only 1 thread can be there at time. In

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-23 11:35

    To answer part of your question anyway, you can use the "Application_Start" method in the Global.asax to execute the statement on the start of the application if you want to pre-fill the data as soon as the application comes online.

提交回复
热议问题