public static void InitiateService(string connectionString, string databaseName, string collectionName)
 {
     if (Service == null)
     {
         Service = new MongoDBService(connectionString, databaseName, collectionName);
     }
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            /* Database connection */
            MongoDBService.InitiateService("mongodb://localhost:27017", "financialData", "data");

            /* Run application */
            RunFormApplication();
        }