2026-04-22 10:25:46 +08:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
2026-08-11 23:03:55 +08:00
|
|
|
namespace LanMountainDesktop.AirAppSdk;
|
2026-04-22 10:25:46 +08:00
|
|
|
|
2026-08-11 23:03:55 +08:00
|
|
|
public interface IAirAppWorker
|
2026-04-22 10:25:46 +08:00
|
|
|
{
|
2026-08-11 23:03:55 +08:00
|
|
|
void ConfigureServices(IAirAppWorkerContext context, IServiceCollection services);
|
2026-04-22 10:25:46 +08:00
|
|
|
|
2026-08-11 23:03:55 +08:00
|
|
|
Task StartAsync(IAirAppWorkerContext context, IServiceProvider services, CancellationToken cancellationToken = default);
|
2026-04-22 10:25:46 +08:00
|
|
|
|
|
|
|
|
Task StopAsync(CancellationToken cancellationToken = default);
|
|
|
|
|
}
|