Exemple #1
0
 /// <summary>
 /// Get an instance of the CCConfiguration object. CCConfiguration object is keyed on migration source id.
 /// </summary>
 /// <param name="configurationService"></param>
 /// <returns></returns>
 public static CCConfiguration GetInstance(MigrationSource migrationSource)
 {
     if (instanceTable == null)
     {
         instanceTable = new Dictionary <string, CCConfiguration>();
     }
     if (instanceTable.ContainsKey(migrationSource.InternalUniqueId))
     {
         return(instanceTable[migrationSource.InternalUniqueId]);
     }
     else
     {
         CCConfiguration ccConfiguration = new CCConfiguration(migrationSource);
         instanceTable.Add(migrationSource.InternalUniqueId, ccConfiguration);
         return(ccConfiguration);
     }
 }
Exemple #2
0
 private void initializeConfiguration()
 {
     m_ccConfiguration = CCConfiguration.GetInstance(m_configurationService.MigrationSource);
 }