Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Горбатов Александр #199

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

SilversShade
Copy link

Copy link

@elizShtol elizShtol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Почисти, пожалуйста, неиспользуемые юзинги

  2. Пока кажется довольно сложно будет реализовать какой-то другой интерфейс, кроме консольного (так как настройки регаются только парсингом из консоли). Предлагаю добавить интерфейс вроде SettingsProvider'а, одной из реализаций которого будет парсинг из консоли

This comment was marked as resolved.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это алгоритм для построения облака из одного из предыдущих ДЗ, чтобы уже написанный код не копировать)

Comment on lines 29 to 35

containerBuilder.RegisterType<DefaultImageDrawer>().As<IImageDrawer>().SingleInstance();
containerBuilder.RegisterInstance(new DefaultWordFilter(new TxtFileWordParser("../../../../TagsCloudContainer/Resources/filter.txt"))).As<IWordFilter>()
.SingleInstance();
containerBuilder.RegisterType<DefaultWordProcessor>().As<IProcessedWordProvider>().SingleInstance();
containerBuilder.RegisterType<DefaultWordCloudDistributor>().As<IWordCloudDistributorProvider>().SingleInstance();
containerBuilder.RegisterType<DefaultImageDrawer>().As<IImageDrawer>().SingleInstance();

This comment was marked as resolved.

containerBuilder);

containerBuilder.RegisterType<DefaultImageDrawer>().As<IImageDrawer>().SingleInstance();
containerBuilder.RegisterInstance(new DefaultWordFilter(new TxtFileWordParser("../../../../TagsCloudContainer/Resources/filter.txt"))).As<IWordFilter>()

This comment was marked as resolved.

Comment on lines 8 to 12
public static readonly IReadOnlyDictionary<string, Action<ContainerBuilder>> RegisteredProviders =
new Dictionary<string, Action<ContainerBuilder>>
{
{"Random", builder => builder.RegisterType<RandomWordColorer>().As<IWordColorer>().SingleInstance()},
{"Bicolor", builder => builder.RegisterInstance(new BicolorColorer()).As<IWordColorer>().SingleInstance()}

This comment was marked as resolved.

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants