public void SetGetServerHandler(string name) { var item = Gateway.PluginCenter.GetServerHandlers.Get(name); if (item == null) { Gateway.HttpServer.GetLog(LogType.Warring)?.Log(BeetleX.EventArgs.LogType.Warring, $"gateway {name} get server handler not found"); } else { GetServerHandler = item; Gateway.HttpServer.GetLog(LogType.Info)?.Log(BeetleX.EventArgs.LogType.Info, $"gateway {UrlRoute?.Url} set {name} get server handler "); } }
public void RemoveGetServerHandler() { GetServerHandler = null; }