Use AddHostedService. A hosted service is more than just a singleton service. The runtime "knows" about it, can tell it to start by calling ...
確定! 回上一頁