Files
Telegrator/Telegrator/TelegratorOptions.cs
T
Rikitav 16d11990ec * Added Result class to communicate with router from handler
* Removed "ExecuteOnlyFirstFoundHanlder" in sake of testing new Result pattern based routing system
* Removed obsolete option property "DescendDescriptorIndex"
* Changed router logic
* Changed handlers pool logic
2025-08-02 02:32:38 +04:00

32 lines
940 B
C#

using Telegrator.Configuration;
namespace Telegrator
{
/// <summary>
/// Configuration options for Telegram bot behavior and execution settings.
/// Controls various aspects of bot operation including concurrency, routing, and execution policies.
/// </summary>
public class TelegratorOptions : ITelegratorOptions
{
/*
/// <inheritdoc/>
public bool ExecuteOnlyFirstFoundHanlder { get; set; }
/// <inheritdoc/>
public bool DescendDescriptorIndex { get; set; } = true;
*/
/// <inheritdoc/>
public int? MaximumParallelWorkingHandlers { get; set; }
/// <inheritdoc/>
public bool ExclusiveAwaitingHandlerRouting { get; set; }
/// <inheritdoc/>
public bool ExceptIntersectingCommandAliases { get; set; } = true;
/// <inheritdoc/>
public CancellationToken GlobalCancellationToken { get; set; }
}
}