private static string GetName(CastleComponentAttribute defaults, IConfiguration component) { if (component.Attributes["id-automatic"] != bool.TrueString) { return component.Attributes["id"]; } return defaults.Name; }
private void AddToResult(Type type, CastleComponentAttribute attribute) { _result.Add( new ComponentDefinition( attribute.Key, attribute.Service, type ) ); }