Example #1
0
 public static void InitiateService(string connectionString, string databaseName, string collectionName)
 {
     if (Service == null)
     {
         Service = new MongoDBService(connectionString, databaseName, collectionName);
     }
 }
        static void Main(string[] args)
        {
            /* database connection */
            MongoDBService.InitiateService("mongodb://localhost:20000", "financialData", "data");

            RunSparkStreamingApplication();
            Console.ReadLine();
        }