public static void Main(string[] args) { Log ("Afc bot v. 2.0.1"); ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; Configuration.Read(); Log ("Connecting to wiki"); en = new DotNetWikiBot.Site("en.wikipedia.org", Configuration.UserName, Configuration.Password); Log ("Initializing all tasks"); Task1.exec(); }
public static void Main(string[] args) { try { Configuration.LoadXML(); DotNetWikiBot.Site site = new DotNetWikiBot.Site("en.wikipedia.org", Configuration.username, Configuration.password); } catch (Exception fail) { ExceptionHandler(fail); } }