private void LoadConfig() { string login = ConfigurationManager.AppSettings["login"]; string password = ConfigurationManager.AppSettings["password"]; string host = ConfigurationManager.AppSettings["host"]; string database = ConfigurationManager.AppSettings["database"]; string collection = ConfigurationManager.AppSettings["collection"]; MongoHandler.StartOnMongo(login, password, host, database, collection); MongoHandler.ConnectToMongo(); }