mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-19 08:19:48 +08:00
26 lines
644 B
C#
26 lines
644 B
C#
using Microsoft.Extensions.Logging;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Vision.Recognition.Task
|
|
{
|
|
/// <summary>
|
|
/// 和触发器的区别:任务不需要持续捕获游戏图像
|
|
/// </summary>
|
|
public class BaseTaskThread
|
|
{
|
|
protected ILogger<BaseTaskThread> Log;
|
|
|
|
protected CancellationTokenSource Cancellation;
|
|
|
|
public BaseTaskThread(ILogger<BaseTaskThread> logger, CancellationTokenSource cts)
|
|
{
|
|
Log = logger;
|
|
Cancellation = cts;
|
|
}
|
|
}
|
|
} |