How can I execute a method every year using BackgroundService in ASP.NET core Application?

后端 未结 0 1676
后悔当初
后悔当初 2021-02-01 12:39
     public async Task DoWork(CancellationToken cancellationToken)
         { 
             var scope = serviceScopeFactory.CreateScope();
             var context = sco         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题