Making cancellationTokenSource protected
This commit is contained in:
parent
94c680e036
commit
078bdfb163
@ -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; }
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user