AddMethodName() публичный Метод

public AddMethodName ( string methodName, string cacheManagerId ) : void
methodName string
cacheManagerId string
Результат void
Пример #1
0
        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"]);
                    }
                }
            }
        }
Пример #2
0
		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"] );
					}
				}
			}
		}