chore(unity): 固定Unity CLI Loop本地包并移除UnitySkills依赖
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace io.github.hatayama.uLoopMCP
|
||||
{
|
||||
internal sealed class DynamicCodeExecutionSchedulerHooks
|
||||
{
|
||||
public Action AfterSemaphoreEntered { get; set; }
|
||||
|
||||
public Func<Task> AfterBackgroundExecutionStatePublishedAsync { get; set; }
|
||||
|
||||
public Func<Task> AfterBusySemaphoreProbeFailedAsync { get; set; }
|
||||
|
||||
public async Task InvokeAfterBackgroundExecutionStatePublishedAsync()
|
||||
{
|
||||
if (AfterBackgroundExecutionStatePublishedAsync == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
await AfterBackgroundExecutionStatePublishedAsync();
|
||||
}
|
||||
|
||||
public async Task InvokeAfterBusySemaphoreProbeFailedAsync()
|
||||
{
|
||||
if (AfterBusySemaphoreProbeFailedAsync == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
await AfterBusySemaphoreProbeFailedAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user