public AddMethodName ( string methodName, string cacheManagerId ) : void | ||
methodName | string | |
cacheManagerId | string | |
Résultat | void |
private void GatherCacheConfiguration(CacheConfig config, ComponentModel model) { if (model.Configuration == null) { return; } // Get all children of cahce node IConfiguration cacheNode = model.Configuration.Children["cache"]; if (cacheNode == null) { return; } foreach (IConfiguration configuration in model.Configuration.Children) { if (configuration.Name == "cache") { foreach (IConfiguration methodNode in configuration.Children) { string methodName = string.Empty; if (methodNode.Value == null) { methodName = methodNode.Attributes["name"]; } else { methodName = methodNode.Value; } AssertNameIsNotEmptyIsNotNull(methodName, model); config.AddMethodName(methodName, configuration.Attributes["ref"]); } } } }
private void GatherCacheConfiguration(CacheConfig config, ComponentModel model) { if (model.Configuration == null) return; // Get all children of cahce node IConfiguration cacheNode = model.Configuration.Children["cache"]; if (cacheNode == null) return; foreach(IConfiguration configuration in model.Configuration.Children) { if (configuration.Name=="cache") { foreach(IConfiguration methodNode in configuration.Children) { string methodName = string.Empty; if (methodNode.Value==null) { methodName = methodNode.Attributes["name"]; } else { methodName = methodNode.Value; } AssertNameIsNotEmptyIsNotNull(methodName, model); config.AddMethodName( methodName, configuration.Attributes["ref"] ); } } } }