public static void Init(bool test = false) { XElement xe; if (!test) { xe = XmlConfig.CurrentConfig.GetElement("MagazinesGratuits"); } else { Trace.WriteLine("MagazinesGratuits init for test"); xe = XmlConfig.CurrentConfig.GetElement("MagazinesGratuits_Test"); } MagazinesGratuits_HeaderManager_v2.Init(xe); MagazinesGratuits_DetailManager_v2.Init(xe); ServerManagers.Add("MagazinesGratuits", CreateServerManager()); }
public static void Init(bool test = false) { XElement xe; if (!test) { xe = XmlConfig.CurrentConfig.GetElement(__configName); } else { pb.Trace.WriteLine("{0} init for test", __configName); xe = XmlConfig.CurrentConfig.GetElement(__configName + "_Test"); } __current = new Test_v1(); __current.CreateManagers(xe); ServerManagers.Add(__serverName, __current.CreateServerManager(__serverName)); }
public static void Init(bool test = false) { XElement xe; if (!test) { xe = XmlConfig.CurrentConfig.GetElement(__configName); } else { pb.Trace.WriteLine("{0} init for test", __configName); xe = XmlConfig.CurrentConfig.GetElement(__configName + "_Test"); } __current = new MagazinesGratuits_v3(); __current.HeaderPageNominalType = typeof(PostHeaderDataPage_v1); __current.CreateManagers(xe); ServerManagers.Add(__serverName, __current.CreateServerManager(__serverName)); }
public static void Init(bool test = false) { XElement xe; if (!test) { xe = XmlConfig.CurrentConfig.GetElement("Ebookdz"); } else { Trace.WriteLine("Ebookdz init for test"); xe = XmlConfig.CurrentConfig.GetElement("Ebookdz_Test"); } EbookdzLogin_v2.Init(xe); Ebookdz_MainForumManager_v2.Init(xe); Ebookdz_SubForumManager_v2.Init(xe); Ebookdz_ForumHeaderManager_v2.Init(xe); Ebookdz_HeaderManager_v2.Init(xe); Ebookdz_DetailManager_v2.Init(xe); ServerManagers.Add("Ebookdz", CreateServerManager()); }
//private static char[] _trimChars = new char[] { ' ', '\t', '\n', '\r', ',', '»', '&', '+', '/', '|', '*', '=', '»', '.', ':', '_' }; //private static Func<string, string> __trimFunc1 = text => text.Trim(_trimChars); //private static Func<string, string> __replaceChars = text => text.Replace('\u2013', '-'); //public static Func<string, string> TrimFunc1 { get { return __trimFunc1; } } //public static Func<string, string> ReplaceChars { get { return __replaceChars; } } static MagazinesGratuits_v1() { ServerManagers.Add("MagazinesGratuits", CreateServerManager()); }