using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Options;
namespace Telegrator.Hosting
{
///
/// Settings os hosted Telegram bot
///
public class TelegramBotHostBuilderSettings() : TelegratorOptions
{
///
/// Disables automatic configuration for all of required instances
///
public bool DisableAutoConfigure { get; set; }
///
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; }
internal HostApplicationBuilderSettings ToApplicationBuilderSettings() => new HostApplicationBuilderSettings()
{
DisableDefaults = DisableDefaults,
Args = Args,
Configuration = Configuration,
EnvironmentName = EnvironmentName,
ApplicationName = ApplicationName,
ContentRootPath = ContentRootPath
};
}
}