BirthdayBot/BackgroundServices/BackgroundService.cs
Noi ddcde10e09 First commit for C# rewrite
All existing VB code was 'translated' to C# as closely as possible, with
minor changes and additional notes. Currently untested and likely
broken.
Further commits will go toward making overall improvements until this
version replaces the currently existing code.
2020-04-02 11:38:26 -07:00

15 lines
387 B
C#

using System.Threading.Tasks;
namespace BirthdayBot.BackgroundServices
{
abstract class BackgroundService
{
protected BirthdayBot BotInstance { get; }
public BackgroundService(BirthdayBot instance) => BotInstance = instance;
protected void Log(string message) => Program.Log(GetType().Name, message);
public abstract Task OnTick();
}
}