Ejemplo n.º 1
0
        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 ");
            }
        }
Ejemplo n.º 2
0
 public void RemoveGetServerHandler()
 {
     GetServerHandler = null;
 }