1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user