/// <summary> /// Initializes a new instance of the <see cref="Listener"/> class. /// </summary> /// <param name="cfg">The Config Object.</param> public Listener(Config cfg, List<UrlMapItem> UrlMap, Hashtable modulelist) { port = int.Parse(cfg.Get("port")); config = cfg; GlobalUrlMap = UrlMap; ServicePointManager.DefaultConnectionLimit = 20; ModuleList = modulelist; }