mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 15:44:25 +08:00
13 lines
406 B
C#
13 lines
406 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace LanMountainDesktop.PluginSdk;
|
|
|
|
public interface IPluginWorker
|
|
{
|
|
void ConfigureServices(IPluginWorkerContext context, IServiceCollection services);
|
|
|
|
Task StartAsync(IPluginWorkerContext context, IServiceProvider services, CancellationToken cancellationToken = default);
|
|
|
|
Task StopAsync(CancellationToken cancellationToken = default);
|
|
}
|