-
Notifications
You must be signed in to change notification settings - Fork 303
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
base: master
Are you sure you want to change the base?
Горбатов Александр #199
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Почисти, пожалуйста, неиспользуемые юзинги
-
Пока кажется довольно сложно будет реализовать какой-то другой интерфейс, кроме консольного (так как настройки регаются только парсингом из консоли). Предлагаю добавить интерфейс вроде SettingsProvider'а, одной из реализаций которого будет парсинг из консоли
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это алгоритм для построения облака из одного из предыдущих ДЗ, чтобы уже написанный код не копировать)
TagsCloudConsoleUI/ConsoleUi.cs
Outdated
|
||
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.
This comment was marked as resolved.
Sorry, something went wrong.
TagsCloudConsoleUI/ConsoleUi.cs
Outdated
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.
This comment was marked as resolved.
Sorry, something went wrong.
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.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
# Conflicts: # TagsCloudConsoleUI/ConsoleUi.cs # TagsCloudConsoleUI/Program.cs # TagsCloudContainer/Common/DiContainerBuilder.cs
# Conflicts: # TagsCloudCore/BuildingOptions/CommonOptions.cs # TagsCloudCore/BuildingOptions/DrawingOptions.cs
# Conflicts: # TagsCloudCore/BuildingOptions/CommonOptions.cs # TagsCloudCore/BuildingOptions/DrawingOptions.cs
@elizShtol