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.
33 lines
725 B
33 lines
725 B
|
|
using PluginSystem;
|
|
using Autofac;
|
|
|
|
namespace LifeTimeService
|
|
{
|
|
public class MyService1 : IJobPlugin
|
|
{
|
|
|
|
public string Name { set; get; }= "MyService1";
|
|
|
|
public string Description => throw new NotImplementedException();
|
|
|
|
public Task ExecuteAsync()
|
|
{
|
|
Console.WriteLine("MyService1");
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
public class MyService2 : IJobPlugin
|
|
{
|
|
public string Name { set; get; } = "MyService2";
|
|
public string Description => throw new NotImplementedException();
|
|
|
|
public Task ExecuteAsync()
|
|
{
|
|
Console.WriteLine("MyService2");
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|