public EventClass() { GeneralClass = new GeneralClass(); HTMLCriteriaClass = new HTMLCriteriaClass(); SQLClass = new SQLClass(); StartUpDefinitions(); }
void StartUpDefinitions() { GeneralClass = new GeneralClass(); HTMLCriteriaClass = new HTMLCriteriaClass(); RequiredFolders = GeneralClass.GetAppConfigStringArray("CustomAppSettingsForRequiredFolders"); GeneralClass.CreateRequiredFolders(RequiredFolders, AppStartUpPath); dbClient = new MongoClient(connectionString); db = dbClient.GetDatabase("SahibindenMongoDatabase"); advertCollection = db.GetCollection <BsonDocument>("AdvertCollection"); searchCollection = db.GetCollection <BsonDocument>("SearchCollection"); }