This commit is contained in:
CortexCore
2023-11-30 00:27:34 +08:00
parent 7712c80804
commit 337840ebb3
30 changed files with 787 additions and 62 deletions

View File

@@ -18,6 +18,8 @@ public partial class HttpGet : Node,IActivable
public bool Enabled { get; set; } = true;
[Signal]
public delegate void OnGetEventHandler(string httpContext);
[Signal]
public delegate void OnExceptionEventHandler(string exception);
/// <summary>
/// 请求数据的间隔
/// </summary>
@@ -73,6 +75,10 @@ public partial class HttpGet : Node,IActivable
catch (OperationCanceledException)
{
}
catch (Exception e)
{
EmitSignal(nameof(OnException), e.Message);
}
allowNextRequest = true;
}