using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Telegrator.Configuration; namespace Telegrator.Hosting { /// /// /// public class TelegramBotHostBuilderSettings() : IHandlersCollectingOptions { /// public bool DisableDefaults { get; set; } /// public string[]? Args { get; set; } /// public ConfigurationManager? Configuration { get; set; } /// public string? EnvironmentName { get; set; } /// public string? ApplicationName { get; set; } /// public string? ContentRootPath { get; set; } /// public bool DescendDescriptorIndex { get; set; } = true; /// public bool ExceptIntersectingCommandAliases { get; set; } = true; internal HostApplicationBuilderSettings ToApplicationBuilderSettings() => new HostApplicationBuilderSettings() { DisableDefaults = DisableDefaults, Args = Args, Configuration = Configuration, EnvironmentName = EnvironmentName, ApplicationName = ApplicationName, ContentRootPath = ContentRootPath }; } }