Fixed some of the compiler warnings.
This commit is contained in:
@ -47,6 +47,7 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers
|
||||
else
|
||||
_logger.Debug($"No redeemable actions for ad break begin was found");
|
||||
|
||||
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
|
||||
Task.Run(async () =>
|
||||
{
|
||||
await Task.Delay(TimeSpan.FromSeconds(message.DurationSeconds));
|
||||
@ -73,6 +74,7 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers
|
||||
else
|
||||
_logger.Debug($"No redeemable actions for ad break end was found");
|
||||
});
|
||||
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -52,7 +52,9 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
|
||||
Task.Run(async () => await EndOfRaidSpamProtection(message.ToBroadcasterUserId, endDate));
|
||||
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
|
||||
}
|
||||
|
||||
private async Task EndOfRaidSpamProtection(string raidedId, DateTime endDate)
|
||||
|
@ -29,7 +29,9 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers
|
||||
|
||||
long broadcasterId = long.Parse(message.BroadcasterUserId);
|
||||
long chatterId = message.UserId == null ? 0 : long.Parse(message.UserId);
|
||||
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
|
||||
Task.Run(async () => await _reader.Read(sender, broadcasterId, chatterId, message.UserLogin, null, null, message.Message.Fragments, 100));
|
||||
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
|
||||
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user