mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-12-05 00:06:02 +00:00
添加 Web API 的 OnWebAPIStarted 事件
This commit is contained in:
parent
a3d3dc7df1
commit
42abf38b27
@ -52,6 +52,14 @@ namespace Milimoe.FunGame.Core.Api.Utility
|
||||
}
|
||||
}
|
||||
|
||||
public void OnWebAPIStarted(params object[] objs)
|
||||
{
|
||||
Parallel.ForEach(Plugins.Values, plugin =>
|
||||
{
|
||||
plugin.OnWebAPIStarted(objs);
|
||||
});
|
||||
}
|
||||
|
||||
public void OnBeforeConnectEvent(object sender, ConnectEventArgs e)
|
||||
{
|
||||
Parallel.ForEach(Plugins.Values, plugin =>
|
||||
|
||||
@ -98,6 +98,15 @@ namespace Milimoe.FunGame.Core.Library.Common.Addon
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 当 Web API 服务启动完成后触发
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public virtual void OnWebAPIStarted(params object[] objs)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 绑定事件。在<see cref="BeforeLoad"/>后触发
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user