辉鸭蛋
|
11ec9bc45d
|
refactor: CancellationTokenSource -> CancellationToken
|
2024-10-19 01:50:21 +08:00 |
|
辉鸭蛋
|
5a0f7226ed
|
update ISoloTask
更新 Start 方法以接受 CancellationTokenSource 参数
这些更改主要是为了使 `Start` 方法能够接受 `CancellationTokenSource` 参数,从而更好地控制任务的取消操作。通过传递 `CancellationTokenSource`,可以在需要时取消正在运行的任务,提高了代码的灵活性和可控性。
具体更改包括:
- 将 `Start` 方法的签名从无参数更改为接受 `CancellationTokenSource` 参数。
- 在多个任务类(如 `AutoDomainTask.cs`、`AutoFightTask.cs`、`AutoGeniusInvokationTask.cs`、`AutoMusicGameTask.cs`、`AutoWoodTask.cs`)中,更新 `Start` 方法以接受并使用传入的 `CancellationTokenSource`。
- 在 `Duel.cs` 中,更新 `RunAsync` 和 `Run` 方法的参数以接受 `CancellationTokenSource`,并将 `Cts` 赋值为传入的 `cts`。
- 在 `ISoloTask.cs` 接口中,更新 `Start` 方法的签名以接受 `CancellationTokenSource` 参数。
- 在 `TaskRunner.cs` 中,调用 `soloTask.Start` 时传入 `CancellationContext.Instance.Cts` 作为参数。
|
2024-09-23 00:04:09 +08:00 |
|
辉鸭蛋
|
8bb1d728ff
|
refactor: solo task
|
2024-09-22 23:56:39 +08:00 |
|
qhy040404
|
c490d29aa1
|
code cleanup
|
2024-08-14 18:01:02 +08:00 |
|
辉鸭蛋
|
059e21775f
|
unified capture image method
|
2024-07-21 20:38:06 +08:00 |
|
辉鸭蛋
|
98b744f33f
|
auto tcg opt
|
2024-05-03 21:24:17 +08:00 |
|
辉鸭蛋
|
c2d3e132e8
|
refactor: RectArea -> Region compilation passed
|
2024-05-02 14:45:07 +08:00 |
|
辉鸭蛋
|
18c1e9f978
|
automatically restart the dispatcher when the game window size changes
|
2024-04-28 00:01:04 +08:00 |
|
Mr-Quin
|
97f2dc4550
|
Small refactor to NotificationHelper
|
2024-03-30 15:23:53 -07:00 |
|
Mr-Quin
|
63bec641af
|
Simplify notification creation
|
2024-03-30 13:57:03 -07:00 |
|
Mr-Quin
|
04ce508efd
|
Slightly simplify call to NotifyAllNotifiersAsync
|
2024-03-30 13:57:03 -07:00 |
|
Mr-Quin
|
911ee49083
|
Refactor notification
|
2024-03-30 13:57:02 -07:00 |
|
Mr-Quin
|
e62516c9ce
|
Add notification to task
|
2024-03-30 13:57:02 -07:00 |
|
Mr-Quin
|
675d3cdb50
|
Change all references of Retry to NewRetry
|
2024-03-29 20:26:22 -07:00 |
|
辉鸭蛋
|
0d6ad22a22
|
fix Monitor.Exit() throw exception when use "async" worker functions
|
2024-03-17 00:15:26 +08:00 |
|
辉鸭蛋
|
037d4dadff
|
add lock for independent task
|
2024-03-16 15:20:01 +08:00 |
|
ema
|
c5f81dd447
|
restruct: Retry methods
|
2024-02-29 10:29:29 +08:00 |
|
huiyadanli
|
7883cc2d29
|
auto genius invokation: optimize dice count OCR & dice recognition is sorted by character element priority #165
|
2024-01-13 22:49:14 +08:00 |
|
huiyadanli
|
2f29ab7fae
|
using debug log level to print StackTrace
|
2024-01-09 23:42:00 +08:00 |
|
huiyadanli
|
c6d28874df
|
auto genius invokation: dice OCR determination 2->4
|
2023-12-24 19:51:33 +08:00 |
|
huiyadanli
|
6d485dca94
|
auto genius invokation for keqing #130
|
2023-12-05 01:59:23 +08:00 |
|
huiyadanli
|
56473d79a4
|
detailed error logs switch
|
2023-12-03 13:44:31 +08:00 |
|
huiyadanli
|
408e372481
|
auto wood
|
2023-11-25 22:30:18 +08:00 |
|
huiyadanli
|
9fe2a75db2
|
auto genius invokation: fix PredictionDiceType, switching characters does not require specific dice
|
2023-11-25 16:51:33 +08:00 |
|
huiyadanli
|
f4fb5a24aa
|
more friendly prompts #23
|
2023-11-25 04:21:18 +08:00 |
|
huiyadanli
|
55748bc549
|
fix rect
|
2023-11-25 02:21:03 +08:00 |
|
qhy040404
|
920e0fb4df
|
Set btn text after exiting duel
|
2023-11-22 18:58:13 +08:00 |
|
huiyadanli
|
34725b5122
|
fix OpenCvSharp.Rect can't deserialize
|
2023-11-22 00:30:06 +08:00 |
|
huiyadanli
|
1356f5208c
|
fix auto genius invokation
|
2023-11-13 01:27:38 +08:00 |
|
huiyadanli
|
117fc39dd2
|
set dice count by ocr #14
|
2023-11-13 00:17:58 +08:00 |
|
huiyadanli
|
bfca926c07
|
AutoGeniusInvokation: add hotkey
|
2023-10-22 15:28:38 +08:00 |
|
huiyadanli
|
6256a80c01
|
fix some Genius Invokation bug
|
2023-10-22 14:17:41 +08:00 |
|
huiyadanli
|
63dbc54095
|
finsh Genius Invokation
|
2023-10-22 02:12:13 +08:00 |
|
huiyadanli
|
bda00ad054
|
AutoGeniusInvokation: add entry
|
2023-10-21 18:48:36 +08:00 |
|
huiyadanli
|
feb09bb6bc
|
AutoGeniusInvokation: migrate code
|
2023-10-21 14:08:16 +08:00 |
|