16d11990ec
* Removed "ExecuteOnlyFirstFoundHanlder" in sake of testing new Result pattern based routing system * Removed obsolete option property "DescendDescriptorIndex" * Changed router logic * Changed handlers pool logic
32 lines
940 B
C#
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; }
|
|
}
|
|
}
|