Fixed Telegrator.Tests project file

This commit is contained in:
2026-03-06 21:17:04 +04:00
parent f1927cdda0
commit 74d778e6da
7 changed files with 8901 additions and 12 deletions
+231
View File
@@ -0,0 +1,231 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Telegrator.Hosting.Web</name>
</assembly>
<members>
<member name="T:Telegrator.Hosting.Web.Components.ITelegramBotWebHost">
<summary>
Interface for Telegram bot hosts with Webhook update receiving.
Combines wbe application capabilities with reactive Telegram bot functionality.
</summary>
</member>
<member name="T:Telegrator.Hosting.Web.Polling.HostedUpdateWebhooker">
<summary>
Service for receiving updates for Hosted telegram bots via Webhooks
</summary>
</member>
<member name="M:Telegrator.Hosting.Web.Polling.HostedUpdateWebhooker.#ctor(Microsoft.AspNetCore.Routing.IEndpointRouteBuilder,Telegram.Bot.ITelegramBotClient,Telegrator.MadiatorCore.IUpdateRouter,Microsoft.Extensions.Options.IOptions{Telegrator.Hosting.Web.TelegratorWebOptions})">
<summary>
Initiallizes new instance of <see cref="T:Telegrator.Hosting.Web.Polling.HostedUpdateWebhooker"/>
</summary>
<param name="botHost"></param>
<param name="botClient"></param>
<param name="updateRouter"></param>
<param name="options"></param>
<exception cref="T:System.ArgumentNullException"></exception>
</member>
<member name="M:Telegrator.Hosting.Web.Polling.HostedUpdateWebhooker.StartAsync(System.Threading.CancellationToken)">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.Web.Polling.HostedUpdateWebhooker.StopAsync(System.Threading.CancellationToken)">
<inheritdoc/>
</member>
<member name="T:Telegrator.Hosting.Web.TelegramBotWebHost">
<summary>
Represents a web hosted telegram bot
</summary>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebHost.Services">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebHost.UpdateRouter">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebHost.DataSources">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebHost.Lifetime">
<summary>
Allows consumers to be notified of application lifetime events.
</summary>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebHost.Logger">
<summary>
This application's logger
</summary>
</member>
<member name="M:Telegrator.Hosting.Web.TelegramBotWebHost.#ctor(Microsoft.AspNetCore.Builder.WebApplicationBuilder,Telegrator.MadiatorCore.IHandlersCollection)">
<summary>
Initializes a new instance of the <see cref="T:Microsoft.AspNetCore.Builder.WebApplicationBuilder"/> class.
</summary>
<param name="webApplicationBuilder">The proxied instance of host builder.</param>
<param name="handlers"></param>
</member>
<member name="M:Telegrator.Hosting.Web.TelegramBotWebHost.CreateBuilder(Telegrator.Hosting.Web.TelegramBotWebOptions)">
<summary>
Creates new <see cref="T:Telegrator.Hosting.TelegramBotHostBuilder"/> with default services and webhook update receiving scheme
</summary>
<returns></returns>
</member>
<member name="M:Telegrator.Hosting.Web.TelegramBotWebHost.CreateSlimBuilder(Telegrator.Hosting.Web.TelegramBotWebOptions)">
<summary>
Creates new SLIM <see cref="T:Telegrator.Hosting.TelegramBotHostBuilder"/> with default services and webhook update receiving scheme
</summary>
<returns></returns>
</member>
<member name="M:Telegrator.Hosting.Web.TelegramBotWebHost.CreateEmptyBuilder(Telegrator.Hosting.Web.TelegramBotWebOptions)">
<summary>
Creates new EMPTY <see cref="T:Telegrator.Hosting.TelegramBotHostBuilder"/> WITHOUT any services or update receiving schemes
</summary>
<returns></returns>
</member>
<member name="M:Telegrator.Hosting.Web.TelegramBotWebHost.StartAsync(System.Threading.CancellationToken)">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.Web.TelegramBotWebHost.StopAsync(System.Threading.CancellationToken)">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.Web.TelegramBotWebHost.CreateApplicationBuilder">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.Web.TelegramBotWebHost.Use(System.Func{Microsoft.AspNetCore.Http.RequestDelegate,Microsoft.AspNetCore.Http.RequestDelegate})">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.Web.TelegramBotWebHost.New">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.Web.TelegramBotWebHost.Build">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.Web.TelegramBotWebHost.DisposeAsync">
<summary>
Disposes the host.
</summary>
</member>
<member name="M:Telegrator.Hosting.Web.TelegramBotWebHost.Dispose">
<summary>
Disposes the host.
</summary>
</member>
<member name="T:Telegrator.Hosting.Web.TelegramBotWebHostBuilder">
<summary>
Represents a web hosted telegram bots and services builder that helps manage configuration, logging, lifetime, and more.
</summary>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebHostBuilder.Handlers">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebHostBuilder.Configuration">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebHostBuilder.Logging">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebHostBuilder.Services">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebHostBuilder.Environment">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.Web.TelegramBotWebHostBuilder.#ctor(Microsoft.AspNetCore.Builder.WebApplicationBuilder,Telegrator.Hosting.Web.TelegramBotWebOptions)">
<summary>
Initializes a new instance of the <see cref="T:Telegrator.Hosting.Web.TelegramBotWebHostBuilder"/> class.
</summary>
<param name="webApplicationBuilder"></param>
<param name="settings"></param>
</member>
<member name="M:Telegrator.Hosting.Web.TelegramBotWebHostBuilder.#ctor(Microsoft.AspNetCore.Builder.WebApplicationBuilder,Telegrator.Hosting.Web.TelegramBotWebOptions,Telegrator.MadiatorCore.IHandlersCollection)">
<summary>
Initializes a new instance of the <see cref="T:Telegrator.Hosting.Web.TelegramBotWebHostBuilder"/> class.
</summary>
<param name="webApplicationBuilder"></param>
<param name="handlers"></param>
<param name="settings"></param>
</member>
<member name="M:Telegrator.Hosting.Web.TelegramBotWebHostBuilder.Build">
<summary>
Builds the host.
</summary>
<returns></returns>
</member>
<member name="T:Telegrator.Hosting.Web.TelegramBotWebOptions">
<summary>
Options for configuring the behavior for TelegramBotWebHost.
</summary>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebOptions.DisableAutoConfigure">
<summary>
Disables automatic configuration for all of required <see cref="T:Microsoft.Extensions.Options.IOptions`1"/> instances
</summary>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebOptions.Args">
<inheritdoc cref="P:Microsoft.AspNetCore.Builder.WebApplicationOptions.Args"/>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebOptions.EnvironmentName">
<inheritdoc cref="P:Microsoft.AspNetCore.Builder.WebApplicationOptions.EnvironmentName"/>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebOptions.ApplicationName">
<inheritdoc cref="P:Microsoft.AspNetCore.Builder.WebApplicationOptions.ApplicationName"/>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebOptions.ContentRootPath">
<inheritdoc cref="P:Microsoft.AspNetCore.Builder.WebApplicationOptions.ContentRootPath"/>
</member>
<member name="P:Telegrator.Hosting.Web.TelegramBotWebOptions.WebRootPath">
<inheritdoc cref="P:Microsoft.AspNetCore.Builder.WebApplicationOptions.WebRootPath"/>
</member>
<member name="T:Telegrator.Hosting.Web.TelegratorWebOptions">
<summary>
Configuration options for Telegram bot behavior and execution settings.
Controls various aspects of bot operation including concurrency, routing, webhook receiving, and execution policies.
</summary>
</member>
<member name="P:Telegrator.Hosting.Web.TelegratorWebOptions.WebhookUri">
<summary>
Gets or sets HTTPS URL to send updates to. Use an empty string to remove webhook integration
</summary>
</member>
<member name="P:Telegrator.Hosting.Web.TelegratorWebOptions.SecretToken">
<summary>
A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” in every webhook request, 1-256 characters.
Only characters A-Z, a-z, 0-9, _ and - are allowed.
The header is useful to ensure that the request comes from a webhook set by you.
</summary>
</member>
<member name="P:Telegrator.Hosting.Web.TelegratorWebOptions.MaxConnections">
<summary>
The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to 40.
Use lower values to limit the load on your bot's server, and higher values to increase your bot's throughput.
</summary>
</member>
<member name="P:Telegrator.Hosting.Web.TelegratorWebOptions.DropPendingUpdates">
<summary>
Pass true to drop all pending updates
</summary>
</member>
<member name="T:Telegrator.Hosting.Web.ServicesCollectionExtensions">
<summary>
Contains extensions for <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>
Provides method to configure <see cref="T:Telegrator.Hosting.Web.Components.ITelegramBotWebHost"/>
</summary>
</member>
<member name="M:Telegrator.Hosting.Web.ServicesCollectionExtensions.AddTelegratorWeb(Microsoft.AspNetCore.Builder.WebApplicationBuilder,Telegrator.Hosting.Web.TelegramBotWebOptions,Telegrator.MadiatorCore.IHandlersCollection)">
<summary>
Replaces TelegramBotWebHostBuilder. Configures DI, options, and handlers.
</summary>
</member>
<member name="M:Telegrator.Hosting.Web.ServicesCollectionExtensions.UseTelegratorWeb(Microsoft.AspNetCore.Builder.WebApplication)">
<summary>
Replaces the initialization logic from TelegramBotWebHost constructor.
Initializes the bot and logs handlers on application startup.
</summary>
</member>
<member name="M:Telegrator.Hosting.Web.ServicesCollectionExtensions.AddTelegramWebhook(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
Registers <see cref="T:Telegram.Bot.ITelegramBotClient"/> service with <see cref="T:Telegrator.Hosting.Web.Polling.HostedUpdateWebhooker"/> to receive updates using webhook
</summary>
<param name="services"></param>
<returns></returns>
</member>
</members>
</doc>
+480
View File
@@ -0,0 +1,480 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Telegrator.Hosting</name>
</assembly>
<members>
<member name="T:Telegrator.Hosting.Components.IPreBuildingRoutine">
<summary>
Interface for pre-building routines that can be executed during host construction.
Allows for custom initialization and configuration steps before the bot host is built.
</summary>
</member>
<member name="M:Telegrator.Hosting.Components.IPreBuildingRoutine.PreBuildingRoutine(Telegrator.Hosting.Components.ITelegramBotHostBuilder)">
<summary>
Executes the pre-building routine on the specified host builder.
</summary>
<param name="hostBuilder">The host builder to configure.</param>
</member>
<member name="T:Telegrator.Hosting.Components.ITelegramBotHost">
<summary>
Interface for Telegram bot hosts.
Combines host application capabilities with reactive Telegram bot functionality.
</summary>
</member>
<member name="T:Telegrator.Hosting.Components.ITelegramBotHostBuilder">
<summary>
Interface for building Telegram bot hosts with dependency injection support.
Combines host application building capabilities with handler collection functionality.
</summary>
</member>
<member name="P:Telegrator.Hosting.Components.ITelegramBotHostBuilder.Configuration">
<summary>
Gets the set of key/value configuration properties.
</summary>
</member>
<member name="P:Telegrator.Hosting.Components.ITelegramBotHostBuilder.Logging">
<summary>
Gets a collection of logging providers for the application to compose. This is useful for adding new logging providers.
</summary>
</member>
<member name="P:Telegrator.Hosting.Components.ITelegramBotHostBuilder.Services">
<summary>
Gets a collection of services for the application to compose. This is useful for adding user provided or framework provided services.
</summary>
</member>
<member name="T:Telegrator.Hosting.Configuration.ConfigureOptionsProxy`1">
<summary>
Abstract base class for configuring options from configuration sources.
Provides a proxy pattern for binding configuration to strongly-typed options classes.
</summary>
<typeparam name="TOptions">The type of options to configure.</typeparam>
</member>
<member name="M:Telegrator.Hosting.Configuration.ConfigureOptionsProxy`1.Configure(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.Configuration.IConfiguration)">
<summary>
Configures the options using the default configuration section.
</summary>
<param name="services">The service collection to configure.</param>
<param name="configuration">The configuration source.</param>
</member>
<member name="M:Telegrator.Hosting.Configuration.ConfigureOptionsProxy`1.Configure(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.String,Microsoft.Extensions.Configuration.IConfiguration)">
<summary>
Configures the options using a named configuration section.
</summary>
<param name="services">The service collection to configure.</param>
<param name="name">The name of the configuration section.</param>
<param name="configuration">The configuration source.</param>
</member>
<member name="M:Telegrator.Hosting.Configuration.ConfigureOptionsProxy`1.Configure(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.String,Microsoft.Extensions.Configuration.IConfiguration,System.Action{Microsoft.Extensions.Configuration.BinderOptions})">
<summary>
Configures the options using a named configuration section with custom binder options.
</summary>
<param name="services">The service collection to configure.</param>
<param name="name">The name of the configuration section.</param>
<param name="configuration">The configuration source.</param>
<param name="configureBinder">Optional action to configure the binder options.</param>
</member>
<member name="M:Telegrator.Hosting.Configuration.ConfigureOptionsProxy`1.Realize">
<summary>
Creates the actual options instance from the configuration.
</summary>
<returns>The configured options instance.</returns>
</member>
<member name="T:Telegrator.Hosting.Configuration.TelegramBotClientOptionsProxy">
<summary>
Internal proxy class for configuring Telegram bot client options from configuration.
Extends ConfigureOptionsProxy to provide specific configuration for Telegram bot client options.
</summary>
</member>
<member name="P:Telegrator.Hosting.Configuration.TelegramBotClientOptionsProxy.Token">
<summary>
Gets or sets the bot token.
</summary>
</member>
<member name="P:Telegrator.Hosting.Configuration.TelegramBotClientOptionsProxy.BaseUrl">
<summary>
Gets or sets the base URL for the bot API.
</summary>
</member>
<member name="P:Telegrator.Hosting.Configuration.TelegramBotClientOptionsProxy.UseTestEnvironment">
<summary>
Gets or sets whether to use the test environment.
</summary>
</member>
<member name="P:Telegrator.Hosting.Configuration.TelegramBotClientOptionsProxy.RetryThreshold">
<summary>
Gets or sets the retry threshold in seconds.
</summary>
</member>
<member name="P:Telegrator.Hosting.Configuration.TelegramBotClientOptionsProxy.RetryCount">
<summary>
Gets or sets the number of retry attempts.
</summary>
</member>
<member name="M:Telegrator.Hosting.Configuration.TelegramBotClientOptionsProxy.Realize">
<summary>
Creates a TelegramBotClientOptions instance from the proxy configuration.
</summary>
<returns>The configured TelegramBotClientOptions instance.</returns>
</member>
<member name="T:Telegrator.Hosting.HostedTelegramBotInfo">
<summary>
Implementation of <see cref="T:Telegrator.Configuration.ITelegramBotInfo"/> that provides bot information.
Contains metadata about the Telegram bot including user details and service provider for wider filterring abilities
</summary>
<param name="client"></param>
<param name="services"></param>
<param name="configuration"></param>
</member>
<member name="M:Telegrator.Hosting.HostedTelegramBotInfo.#ctor(Telegram.Bot.ITelegramBotClient,System.IServiceProvider,Microsoft.Extensions.Configuration.IConfigurationManager)">
<summary>
Implementation of <see cref="T:Telegrator.Configuration.ITelegramBotInfo"/> that provides bot information.
Contains metadata about the Telegram bot including user details and service provider for wider filterring abilities
</summary>
<param name="client"></param>
<param name="services"></param>
<param name="configuration"></param>
</member>
<member name="P:Telegrator.Hosting.HostedTelegramBotInfo.User">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.HostedTelegramBotInfo.Services">
<summary>
Provides access to services of this Hosted telegram bot
</summary>
</member>
<member name="P:Telegrator.Hosting.HostedTelegramBotInfo.Configuration">
<summary>
Provides access to configuration of this Hosted telegram bot
</summary>
</member>
<member name="T:Telegrator.Hosting.Logging.MicrosoftLoggingAdapter">
<summary>
Adapter for Microsoft.Extensions.Logging to work with Telegrator logging system.
This allows seamless integration with ASP.NET Core logging infrastructure.
</summary>
</member>
<member name="M:Telegrator.Hosting.Logging.MicrosoftLoggingAdapter.#ctor(Microsoft.Extensions.Logging.ILogger)">
<summary>
Initializes a new instance of MicrosoftLoggingAdapter.
</summary>
<param name="logger">The Microsoft.Extensions.Logging logger instance.</param>
</member>
<member name="M:Telegrator.Hosting.Logging.MicrosoftLoggingAdapter.Log(Telegrator.Logging.LogLevel,System.String,System.Exception)">
<inheritdoc/>
</member>
<member name="T:Telegrator.Hosting.Polling.HostedUpdateReceiver">
<summary>
Service for receiving updates for Hosted telegram bots
</summary>
<param name="botHost"></param>
<param name="botClient"></param>
<param name="updateRouter"></param>
<param name="options"></param>
<param name="logger"></param>
</member>
<member name="M:Telegrator.Hosting.Polling.HostedUpdateReceiver.#ctor(Telegrator.Hosting.Components.ITelegramBotHost,Telegram.Bot.ITelegramBotClient,Telegrator.MadiatorCore.IUpdateRouter,Microsoft.Extensions.Options.IOptions{Telegram.Bot.Polling.ReceiverOptions},Microsoft.Extensions.Logging.ILogger{Telegrator.Hosting.Polling.HostedUpdateReceiver})">
<summary>
Service for receiving updates for Hosted telegram bots
</summary>
<param name="botHost"></param>
<param name="botClient"></param>
<param name="updateRouter"></param>
<param name="options"></param>
<param name="logger"></param>
</member>
<member name="M:Telegrator.Hosting.Polling.HostedUpdateReceiver.ExecuteAsync(System.Threading.CancellationToken)">
<inheritdoc/>
</member>
<member name="T:Telegrator.Hosting.Polling.HostUpdateHandlersPool">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.Polling.HostUpdateHandlersPool.#ctor(Telegrator.MadiatorCore.IUpdateRouter,Microsoft.Extensions.Options.IOptions{Telegrator.TelegratorOptions})">
<inheritdoc/>
</member>
<member name="T:Telegrator.Hosting.Polling.HostUpdateRouter">
<inheritdoc/>
</member>
<member name="F:Telegrator.Hosting.Polling.HostUpdateRouter.Logger">
<summary>
<see cref="T:Microsoft.Extensions.Logging.ILogger"/> of this router
</summary>
</member>
<member name="M:Telegrator.Hosting.Polling.HostUpdateRouter.#ctor(Telegrator.MadiatorCore.IHandlersProvider,Telegrator.MadiatorCore.IAwaitingProvider,Microsoft.Extensions.Options.IOptions{Telegrator.TelegratorOptions},Telegrator.MadiatorCore.IUpdateHandlersPool,Telegrator.Configuration.ITelegramBotInfo,Microsoft.Extensions.Logging.ILogger{Telegrator.Hosting.Polling.HostUpdateRouter})">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.Polling.HostUpdateRouter.HandleUpdateAsync(Telegram.Bot.ITelegramBotClient,Telegram.Bot.Types.Update,System.Threading.CancellationToken)">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.Polling.HostUpdateRouter.HandleException(Telegram.Bot.ITelegramBotClient,System.Exception,Telegram.Bot.Polling.HandleErrorSource,System.Threading.CancellationToken)">
<summary>
Default exception handler of this router
</summary>
<param name="botClient"></param>
<param name="exception"></param>
<param name="source"></param>
<param name="cancellationToken"></param>
</member>
<member name="T:Telegrator.Hosting.Providers.Components.IHostHandlersCollection">
<summary>
Collection class for managing handler descriptors organized by update type for host apps.
Provides functionality for collecting, adding, scanning, and organizing handlers.
</summary>
</member>
<member name="P:Telegrator.Hosting.Providers.Components.IHostHandlersCollection.PreBuilderRoutines">
<summary>
List of tasks that should be completed right before building the bot
</summary>
</member>
<member name="T:Telegrator.Hosting.Providers.HostAwaitingProvider">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.Providers.HostAwaitingProvider.#ctor(Microsoft.Extensions.Options.IOptions{Telegrator.TelegratorOptions},Microsoft.Extensions.Logging.ILogger{Telegrator.Hosting.Providers.HostAwaitingProvider})">
<inheritdoc/>
</member>
<member name="T:Telegrator.Hosting.Providers.PreBuildingRoutine">
<summary>
Pre host building task
</summary>
<param name="builder"></param>
</member>
<member name="T:Telegrator.Hosting.Providers.HostHandlersCollection">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.Providers.HostHandlersCollection.#ctor(Microsoft.Extensions.DependencyInjection.IServiceCollection,Telegrator.Configuration.ITelegratorOptions)">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.Providers.HostHandlersCollection.MustHaveParameterlessCtor">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.Providers.HostHandlersCollection.PreBuilderRoutines">
<summary>
List of tasks that should be completed right before building the bot
</summary>
</member>
<member name="M:Telegrator.Hosting.Providers.HostHandlersCollection.AddDescriptor(Telegrator.MadiatorCore.Descriptors.HandlerDescriptor)">
<inheritdoc/>
</member>
<member name="T:Telegrator.Hosting.Providers.HostHandlersProvider">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.Providers.HostHandlersProvider.#ctor(Telegrator.MadiatorCore.IHandlersCollection,Microsoft.Extensions.Options.IOptions{Telegrator.TelegratorOptions},System.IServiceProvider,Microsoft.Extensions.Logging.ILogger{Telegrator.Hosting.Providers.HostHandlersProvider})">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.Providers.HostHandlersProvider.GetHandlerInstance(Telegrator.MadiatorCore.Descriptors.HandlerDescriptor,System.Threading.CancellationToken)">
<inheritdoc/>
</member>
<member name="T:Telegrator.Hosting.TelegramBotHost">
<summary>
Represents a hosted telegram bot
</summary>
</member>
<member name="P:Telegrator.Hosting.TelegramBotHost.Services">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.TelegramBotHost.UpdateRouter">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.TelegramBotHost.Logger">
<summary>
This application's logger
</summary>
</member>
<member name="M:Telegrator.Hosting.TelegramBotHost.#ctor(Microsoft.Extensions.Hosting.HostApplicationBuilder,Telegrator.MadiatorCore.IHandlersCollection)">
<summary>
Initializes a new instance of the <see cref="T:Telegrator.Hosting.TelegramBotHost"/> class.
</summary>
<param name="hostApplicationBuilder">The proxied instance of host builder.</param>
<param name="handlers"></param>
</member>
<member name="M:Telegrator.Hosting.TelegramBotHost.CreateBuilder">
<summary>
Creates new <see cref="T:Telegrator.Hosting.TelegramBotHostBuilder"/> with default configuration, services and long-polling update receiving scheme
</summary>
<returns></returns>
</member>
<member name="M:Telegrator.Hosting.TelegramBotHost.CreateBuilder(Telegrator.Hosting.TelegramBotHostBuilderSettings)">
<summary>
Creates new <see cref="T:Telegrator.Hosting.TelegramBotHostBuilder"/> with default services and long-polling update receiving scheme
</summary>
<returns></returns>
</member>
<member name="M:Telegrator.Hosting.TelegramBotHost.CreateEmptyBuilder">
<summary>
Creates new EMPTY <see cref="T:Telegrator.Hosting.TelegramBotHostBuilder"/> WITHOUT any services or update receiving schemes
</summary>
<returns></returns>
</member>
<member name="M:Telegrator.Hosting.TelegramBotHost.CreateEmptyBuilder(Telegrator.Hosting.TelegramBotHostBuilderSettings)">
<summary>
Creates new EMPTY <see cref="T:Telegrator.Hosting.TelegramBotHostBuilder"/> WITHOUT any services or update receiving schemes
</summary>
<returns></returns>
</member>
<member name="M:Telegrator.Hosting.TelegramBotHost.StartAsync(System.Threading.CancellationToken)">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.TelegramBotHost.StopAsync(System.Threading.CancellationToken)">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.TelegramBotHost.Dispose">
<summary>
Disposes the host.
</summary>
</member>
<member name="T:Telegrator.Hosting.TelegramBotHostBuilder">
<summary>
Represents a hosted telegram bots and services builder that helps manage configuration, logging, lifetime, and more.
</summary>
</member>
<member name="P:Telegrator.Hosting.TelegramBotHostBuilder.Handlers">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.TelegramBotHostBuilder.Services">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.TelegramBotHostBuilder.Configuration">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.TelegramBotHostBuilder.Logging">
<inheritdoc/>
</member>
<member name="P:Telegrator.Hosting.TelegramBotHostBuilder.Environment">
<inheritdoc/>
</member>
<member name="M:Telegrator.Hosting.TelegramBotHostBuilder.#ctor(Microsoft.Extensions.Hosting.HostApplicationBuilder,Telegrator.Hosting.TelegramBotHostBuilderSettings)">
<summary>
Initializes a new instance of the <see cref="T:Telegrator.Hosting.TelegramBotHostBuilder"/> class.
</summary>
<param name="hostApplicationBuilder"></param>
<param name="settings"></param>
</member>
<member name="M:Telegrator.Hosting.TelegramBotHostBuilder.#ctor(Microsoft.Extensions.Hosting.HostApplicationBuilder,Telegrator.MadiatorCore.IHandlersCollection,Telegrator.Hosting.TelegramBotHostBuilderSettings)">
<summary>
Initializes a new instance of the <see cref="T:Telegrator.Hosting.TelegramBotHostBuilder"/> class.
</summary>
<param name="hostApplicationBuilder"></param>
<param name="handlers"></param>
<param name="settings"></param>
</member>
<member name="M:Telegrator.Hosting.TelegramBotHostBuilder.Build">
<summary>
Builds the host.
</summary>
<returns></returns>
</member>
<member name="T:Telegrator.Hosting.TelegramBotHostBuilderSettings">
<summary>
Settings os hosted Telegram bot
</summary>
</member>
<member name="M:Telegrator.Hosting.TelegramBotHostBuilderSettings.#ctor">
<summary>
Settings os hosted Telegram bot
</summary>
</member>
<member name="P:Telegrator.Hosting.TelegramBotHostBuilderSettings.DisableAutoConfigure">
<summary>
Disables automatic configuration for all of required <see cref="T:Microsoft.Extensions.Options.IOptions`1"/> instances
</summary>
</member>
<member name="P:Telegrator.Hosting.TelegramBotHostBuilderSettings.DisableDefaults">
<inheritdoc cref="P:Microsoft.Extensions.Hosting.HostApplicationBuilderSettings.DisableDefaults"/>
</member>
<member name="P:Telegrator.Hosting.TelegramBotHostBuilderSettings.Args">
<inheritdoc cref="P:Microsoft.Extensions.Hosting.HostApplicationBuilderSettings.Args"/>
</member>
<member name="P:Telegrator.Hosting.TelegramBotHostBuilderSettings.Configuration">
<inheritdoc cref="P:Microsoft.Extensions.Hosting.HostApplicationBuilderSettings.Configuration"/>
</member>
<member name="P:Telegrator.Hosting.TelegramBotHostBuilderSettings.EnvironmentName">
<inheritdoc cref="P:Microsoft.Extensions.Hosting.HostApplicationBuilderSettings.EnvironmentName"/>
</member>
<member name="P:Telegrator.Hosting.TelegramBotHostBuilderSettings.ApplicationName">
<inheritdoc cref="P:Microsoft.Extensions.Hosting.HostApplicationBuilderSettings.ApplicationName"/>
</member>
<member name="P:Telegrator.Hosting.TelegramBotHostBuilderSettings.ContentRootPath">
<inheritdoc cref="P:Microsoft.Extensions.Hosting.HostApplicationBuilderSettings.ContentRootPath"/>
</member>
<member name="M:Telegrator.Hosting.HostBuilderExtensions.AddTelegrator(Microsoft.Extensions.Hosting.IHostApplicationBuilder,Telegrator.Hosting.TelegramBotHostBuilderSettings,Telegrator.MadiatorCore.IHandlersCollection)">
<summary>
Replaces TelegramBotWebHostBuilder. Configures DI, options, and handlers.
</summary>
</member>
<member name="T:Telegrator.Hosting.ServicesCollectionExtensions">
<summary>
Contains extensions for <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>
Provides method to configure <see cref="T:Telegrator.Hosting.Components.ITelegramBotHost"/>
</summary>
</member>
<member name="M:Telegrator.Hosting.ServicesCollectionExtensions.Configure``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.Configuration.IConfiguration,Telegrator.Hosting.Configuration.ConfigureOptionsProxy{``0})">
<summary>
Registers a configuration instance that strongly-typed <typeparamref name="TOptions"/> will bind against using <see cref="T:Telegrator.Hosting.Configuration.ConfigureOptionsProxy`1"/>.
</summary>
<typeparam name="TOptions"></typeparam>
<param name="services"></param>
<param name="configuration"></param>
<param name="optionsProxy"></param>
<returns></returns>
</member>
<member name="M:Telegrator.Hosting.ServicesCollectionExtensions.AddTelegramBotHostDefaults(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
Registers <see cref="T:Telegrator.Hosting.TelegramBotHost"/> default services
</summary>
<param name="services"></param>
<returns></returns>
</member>
<member name="M:Telegrator.Hosting.ServicesCollectionExtensions.AddTelegramReceiver(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
Registers <see cref="T:Telegram.Bot.ITelegramBotClient"/> service with <see cref="T:Telegrator.Hosting.Polling.HostedUpdateReceiver"/> to receive updates using long polling
</summary>
<param name="services"></param>
<returns></returns>
</member>
<member name="M:Telegrator.Hosting.ServicesCollectionExtensions.TypedTelegramBotClientFactory(System.Net.Http.HttpClient,System.IServiceProvider)">
<summary>
<see cref="T:Telegram.Bot.ITelegramBotClient"/> factory method
</summary>
<param name="httpClient"></param>
<param name="provider"></param>
<returns></returns>
</member>
<member name="T:Telegrator.Hosting.TelegramBotHostExtensions">
<summary>
Provides useful methods to adjust <see cref="T:Telegrator.Hosting.Components.ITelegramBotHost"/>
</summary>
</member>
<member name="M:Telegrator.Hosting.TelegramBotHostExtensions.UseTelegrator(Microsoft.Extensions.Hosting.IHost)">
<summary>
Replaces the initialization logic from TelegramBotWebHost constructor.
Initializes the bot and logs handlers on application startup.
</summary>
</member>
<member name="M:Telegrator.Hosting.TelegramBotHostExtensions.SetBotCommands(Microsoft.Extensions.Hosting.IHost)">
<summary>
Configures bots available commands depending on what handlers was registered
</summary>
<param name="botHost"></param>
<returns></returns>
</member>
<member name="M:Telegrator.Hosting.TelegramBotHostExtensions.AddLoggingAdapter(Microsoft.Extensions.Hosting.IHost)">
<summary>
Adds a Microsoft.Extensions.Logging adapter to Alligator using a logger factory.
</summary>
<param name="host"></param>
</member>
<member name="T:Telegrator.Hosting.ReflectionExtensions">
<summary>
Provides extension methods for reflection and type inspection.
</summary>
</member>
<member name="M:Telegrator.Hosting.ReflectionExtensions.IsPreBuildingRoutine(System.Type,System.Reflection.MethodInfo@)">
<summary>
Checks if a type implements the <see cref="T:Telegrator.Hosting.Components.IPreBuildingRoutine"/> interface.
</summary>
<param name="handlerType">The type to check.</param>
<param name="routineMethod"></param>
<returns>True if the type implements IPreBuildingRoutine; otherwise, false.</returns>
</member>
</members>
</doc>
+8178
View File
File diff suppressed because it is too large Load Diff
@@ -26,9 +26,9 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<None Include="..\LICENSE" Pack="True" PackagePath="\" /> <None Include="..\..\LICENSE" Pack="True" PackagePath="\" />
<None Include="..\README.md" Pack="True" PackagePath="\" /> <None Include="..\..\README.md" Pack="True" PackagePath="\" />
<None Include="..\resources\telegrator_nuget.png" Pack="True" PackagePath="\" /> <None Include="..\..\resources\telegrator_nuget.png" Pack="True" PackagePath="\" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
@@ -31,9 +31,9 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\LICENSE" Pack="True" PackagePath="\" /> <None Include="..\..\LICENSE" Pack="True" PackagePath="\" />
<None Include="..\README.md" Pack="True" PackagePath="\" /> <None Include="..\..\README.md" Pack="True" PackagePath="\" />
<None Include="..\resources\telegrator_nuget.png" Pack="True" PackagePath="\" /> <None Include="..\..\resources\telegrator_nuget.png" Pack="True" PackagePath="\" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
+4 -4
View File
@@ -26,9 +26,9 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<None Include="..\LICENSE" Pack="True" PackagePath="\" /> <None Include="..\..\LICENSE" Pack="True" PackagePath="\" />
<None Include="..\README.md" Pack="True" PackagePath="\" /> <None Include="..\..\README.md" Pack="True" PackagePath="\" />
<None Include="..\resources\telegrator_nuget.png" Pack="True" PackagePath="\" /> <None Include="..\..\resources\telegrator_nuget.png" Pack="True" PackagePath="\" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
@@ -41,7 +41,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\dev\Telegrator.RoslynGenerators\Telegrator.RoslynGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> <ProjectReference Include="..\..\dev\Telegrator.RoslynGenerators\Telegrator.RoslynGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup> </ItemGroup>
</Project> </Project>
@@ -18,8 +18,8 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Telegrator\Telegrator.csproj" /> <ProjectReference Include="..\..\src\Telegrator\Telegrator.csproj" />
<ProjectReference Include="..\Telegrator.Hosting\Telegrator.Hosting.csproj" /> <ProjectReference Include="..\..\src\Telegrator.Hosting\Telegrator.Hosting.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>