[mapguide-commits] r7012 - trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Sep 13 09:34:43 PDT 2012


Author: jng
Date: 2012-09-13 09:34:42 -0700 (Thu, 13 Sep 2012)
New Revision: 7012

Modified:
   trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/PlatformConnectionBase.cs
Log:
Fix debug mode compilation

Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/PlatformConnectionBase.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/PlatformConnectionBase.cs	2012-09-13 16:34:10 UTC (rev 7011)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/PlatformConnectionBase.cs	2012-09-13 16:34:42 UTC (rev 7012)
@@ -1480,10 +1480,14 @@
         /// <returns></returns>
         public virtual FeatureSourceDescription DescribeFeatureSource(string resourceID)
         {
-            //bool bFromCache = true;
+        #if DEBUG
+            bool bFromCache = true;
+        #endif
             if (!m_featureSchemaCache.ContainsKey(resourceID))
             {
-                //bFromCache = false;
+            #if DEBUG
+                bFromCache = false;
+            #endif
                 var fsd = this.DescribeFeatureSourceInternal(resourceID);
                 try
                 {
@@ -1532,15 +1536,18 @@
             string classCacheKey = resourceID + "!" + className; //NOXLATE
             ClassDefinition cls = null;
             bool bStoreInCache = true;
-            //bool bFromCache = false;
-
+        #if DEBUG
+            bool bFromCache = false;
+        #endif
             //We don't interrogate the Feature Source Description cache because part of
             //caching a Feature Source Description is to cache all the classes within
             if (m_classDefinitionCache.ContainsKey(classCacheKey))
             {
                 cls = m_classDefinitionCache[classCacheKey];
                 bStoreInCache = false;
-                //bFromCache = true;
+            #if DEBUG
+                bFromCache = true;
+            #endif
             }
             else
             {



More information about the mapguide-commits mailing list