/** * <summary> * Convert the string representation of the cache mode names to an equivalent enumerated objects.</summary> * * <param name="rawCaches">Map of raw cache modes.</param> * <returns>Converted cache modes.</returns> */ protected IDictionary <String, GridClientCacheMode> parseCacheModes(IDictionary <String, String> rawCaches) { var caches = new GridClientNullDictionary <String, GridClientCacheMode>(); foreach (KeyValuePair <String, String> e in rawCaches) { try { caches.Add(e.Key, parseCacheMode(e.Value)); } catch (ArgumentException x) { Dbg.WriteLine("Invalid cache mode received from remote node (will ignore)" + " [srv={0}, cacheName={1}, cacheMode={2}, e={3}]", ServerAddress, e.Key, e.Value, x); } } return(caches); }