private void LogAttributes([NotNull] Type type, [NotNull] ProjectComponentAttribute[] attributes) { if (!attributes.Any()) { return; } var builder = new StringBuilder(); foreach (ProjectComponentAttribute customAttribute in attributes) { ProjectComponentAttribute componentAttribute = customAttribute; ProjectComponentAttribute attribute = componentAttribute; builder.Append("{0} ".Inject(attribute.Lifestyle)); } LogTypeAndLifestyle(type.FullName, builder.ToString()); }
protected static bool IsLifestyleTransient(ProjectComponentAttribute component) { return((component != null) && (component.Lifestyle == Lifestyle.Transient)); }
protected static bool IsLifestyleStartable(ProjectComponentAttribute component) { return((component != null) && (component.Lifestyle == Lifestyle.Startable)); }
protected static bool IsLifestyleSingelton(ProjectComponentAttribute component) { return((component != null) && (component.Lifestyle == Lifestyle.Singleton)); }