Inheritance: LifestyleAttribute
コード例 #1
0
		private static string GetName(CastleComponentAttribute defaults, IConfiguration component)
		{
			if (component.Attributes["id-automatic"] != bool.TrueString)
			{
				return component.Attributes["id"];
			}
			return defaults.Name;
		}
コード例 #2
0
		private void AddToResult(Type type, CastleComponentAttribute attribute)
		{
			_result.Add( new ComponentDefinition( attribute.Key, attribute.Service, type ) );
		}