123456789101112131415161718192021222324 |
- using Microsoft.Extensions.Hosting;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace EEMSServerCore;
- internal class HostLifeTime(IEEMSBaseServerProvider provider) : IHostedService
- {
- public Task StartAsync(CancellationToken cancellationToken)
- {
- provider.Started();
- return Task.CompletedTask;
- }
- public Task StopAsync(CancellationToken cancellationToken)
- {
- return Task.CompletedTask;
- }
- }
|