mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
21 lines
578 B
C#
21 lines
578 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace LanMountainDesktop.PluginSdk;
|
|
|
|
public abstract class PluginWorkerBase : IPluginWorker
|
|
{
|
|
public virtual void ConfigureServices(IPluginWorkerContext context, IServiceCollection services)
|
|
{
|
|
}
|
|
|
|
public virtual Task StartAsync(IPluginWorkerContext context, IServiceProvider services, CancellationToken cancellationToken = default)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
public virtual Task StopAsync(CancellationToken cancellationToken = default)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|