/// <summary> /// Initialize the MongoDbFunctionsSynchronization use the config file /// </summary> public MongoDbFunctionsSynchronization() { Console.WriteLine($"{DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss.fff")} - Initialize the synchronisation..."); _mongoCommand = new MongoDbCommand(); Console.WriteLine($"{DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss.fff")} - Synchronisation initialized"); }
/// <summary> /// Initialize the MongoDbFunctionsSynchronization with a specific url /// </summary> /// <param name="connectionStringSourceUrl">The source Url</param> /// <param name="connectionStringTargetUrl">The target Url</param> public MongoDbFunctionsSynchronization(string connectionStringSourceUrl, string connectionStringTargetUrl) { Console.WriteLine($"{DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss.fff")} - Initialize the synchronisation..."); _mongoCommand = new MongoDbCommand(connectionStringSourceUrl, connectionStringTargetUrl); Console.WriteLine($"{DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss.fff")} - Synchronisation initialized"); }