using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.Options; using System.Diagnostics.CodeAnalysis; namespace Telegrator.Hosting.Web { /// /// Options for configuring the behavior for TelegramBotWebHost. /// public class TelegramBotWebOptions : TelegratorOptions { /// /// Disables automatic configuration for all of required instances /// public bool DisableAutoConfigure { get; set; } /// public string[]? Args { get; init; } /// public string? EnvironmentName { get; init; } /// public string? ApplicationName { get; init; } /// public string? ContentRootPath { get; init; } /// public string? WebRootPath { get; init; } internal WebApplicationOptions ToWebApplicationOptions() => new WebApplicationOptions() { ApplicationName = ApplicationName, Args = Args, ContentRootPath = ContentRootPath, EnvironmentName = EnvironmentName, WebRootPath = WebRootPath }; } }