Making cancellationTokenSource protected

This commit is contained in:
Florian Zevedei 2024-01-24 17:43:44 +01:00
parent 94c680e036
commit 078bdfb163
2 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,7 @@ public class MessageClient
private static readonly object EvOnMessageLoop = new();
private static readonly object EvOnReceiveError = new();
private CancellationTokenSource _cancellationTokenSource;
protected CancellationTokenSource _cancellationTokenSource;
public string ApiKey { get; }

View File

@ -18,7 +18,6 @@ namespace TelegramBotBase.Base;
/// </summary>
public class ThreadPoolMessageClient : MessageClient
{
private CancellationTokenSource _cancellationTokenSource;
/// <summary>
/// Indicates if all pending Telegram.Bot.Types.Updates should be thrown out before