mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
650 B
26 lines
650 B
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.Extensions.Hosting;
|
|
using Volo.Abp;
|
|
|
|
namespace MyCompanyName.MyProjectName;
|
|
|
|
public class MyProjectNameHostedService : IHostedService
|
|
{
|
|
private readonly HelloWorldService _helloWorldService;
|
|
|
|
public MyProjectNameHostedService(HelloWorldService helloWorldService)
|
|
{
|
|
_helloWorldService = helloWorldService;
|
|
}
|
|
|
|
public async Task StartAsync(CancellationToken cancellationToken)
|
|
{
|
|
await _helloWorldService.SayHelloAsync();
|
|
}
|
|
|
|
public Task StopAsync(CancellationToken cancellationToken)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
|