private ReferenceManager GetReferenceManager(Boolean refresh = false)
        {
            if (_referenceManager.IsNull() || refresh)
            {
                _referenceManager            = new ReferenceManagerMultiThreadCache();
                _referenceManager.DataSource = new ReferenceDataSource();
            }

            return(_referenceManager);
        }
示例#2
0
 /// <summary>
 /// Static constructor.
 /// </summary>
 static CoreData()
 {
     AnalysisManager           = new AnalysisManager();
     ApplicationManager        = new ApplicationManager();
     CountryManager            = new CountryManagerMultiThreadCache();
     FactorManager             = new FactorManagerMultiThreadCache();
     GeoReferenceManager       = new GeoReferenceManager();
     LocaleManager             = new LocaleManagerMultiThreadCache();
     MetadataManager           = new MetadataManagerMultiThreadCache();
     OrganizationManager       = new OrganizationManager();
     PictureManager            = new PictureManagerMultiThreadCache();
     ReferenceManager          = new ReferenceManagerMultiThreadCache();
     RegionManager             = new RegionManagerMultiThreadCache(new CoordinateSystem());
     SpeciesFactManager        = new SpeciesFactManagerMultiThreadCache();
     SpeciesObservationManager = new SpeciesObservationManagerMultiThreadCache();
     TaxonManager = new TaxonManagerMultiThreadCache();
     UserManager  = new UserManagerMultiThreadCache();
 }
 public ReferenceManagerMultiThreadCacheTest()
 {
     _referenceManager = null;
 }