Skip to content

Commit

Permalink
Исправляет замечания с UsedImplicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
inyutin-maxim committed Jul 30, 2023
1 parent 676dfa9 commit 841b8b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions VkNet/Utils/BotsLongPool/BotsLongPoolUpdatesProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using VkNet.Exception;
Expand All @@ -16,22 +17,21 @@ namespace VkNet.Utils.BotsLongPool;
/// <summary>
/// Реализация лонгпула для бота в сообществе
/// </summary>
[UsedImplicitly]
public class BotsLongPoolUpdatesProvider
{
private readonly BotsLongPoolUpdatesProviderParams _params;

private LongPollServerResponse? _lpResponse;

/// <param name="params">Параметры группового лонгпула</param>
public BotsLongPoolUpdatesProvider(BotsLongPoolUpdatesProviderParams @params)
{
_params = @params;
}
public BotsLongPoolUpdatesProvider(BotsLongPoolUpdatesProviderParams @params) => _params = @params;

/// <summary>
/// Запуск отслеживания событий
/// </summary>
/// <param name="token">Токен отмены операции</param>
[UsedImplicitly]
public async Task RunAsync(CancellationToken token = default)
{
while (true)
Expand Down

0 comments on commit 841b8b5

Please sign in to comment.