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");
 }
Beispiel #2
0
 void StartUpDefinitions()
 {
     RequiredFolders = GeneralClass.GetAppConfigStringArray("CustomAppSettingsForRequiredFolders");
     GeneralClass.CreateRequiredFolders(RequiredFolders, AppStartUpPath);
 }