/// <summary> /// It process all DatabaseDescriptor.xml files defined by Application and stores in Resource Manager. /// </summary> protected static void ProcessDatabaseDescriptors() { IEnumerator<String> databaseDescriptorPaths = coreResourceManager.GetApplicationDescriptor().GetDatabaseDescriptorPaths(); while (databaseDescriptorPaths.MoveNext()) { String databaseDescriptorPath = databaseDescriptorPaths.Current; DatabaseDescriptorReader databaseDescriptorParser = new DatabaseDescriptorReader(databaseDescriptorPath); DatabaseDescriptor databaseDescriptor = databaseDescriptorParser.GetDatabaseDescriptor(); if (databaseDescriptor == null) { Log.Log.Error(typeof(Siminov).FullName, "ProcessDatabaseDescriptors", "Invalid Database Descriptor Path Found, DATABASE-DESCRIPTOR: " + databaseDescriptorPath); throw new DeploymentException(typeof(Siminov).FullName, "ProcessDatabaseDescriptors", "Invalid Database Descriptor Path Found, DATABASE-DESCRIPTOR: " + databaseDescriptorPath); } coreResourceManager.GetApplicationDescriptor().AddDatabaseDescriptor(databaseDescriptorPath, databaseDescriptor); } }
/// <summary> /// It process all DatabaseDescriptor.xml files defined by Application and stores in Resource Manager. /// </summary> protected static void ProcessDatabaseDescriptors() { Core.Siminov.ProcessDatabaseDescriptors(); DatabaseDescriptorReader databaseDescriptorReader = new DatabaseDescriptorReader(Constants.DATABASE_DESSCRIPTOR_PATH); DatabaseDescriptor databaseDescriptor = databaseDescriptorReader.GetDatabaseDescriptor(); Connect.Model.ApplicationDescriptor applicationDescriptor = connectResourceManager.GetApplicationDescriptor(); applicationDescriptor.AddDatabaseDescriptor(Constants.DATABASE_DESSCRIPTOR_PATH, databaseDescriptor); }