-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update deps and add .NET 8 target * Update Readme * updated gh actions to use .NET 8 SDK * update Logging to use Source Generators * minor syntax adjustments * Fix issue with bigger payloads * update dependencies * Drop not needed await * address memory allocation concerns * incorporate discord feedback * fix double assignment * check if buffer increase is enough
- Loading branch information
Showing
12 changed files
with
75 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
TwitchLib.EventSub.Websockets.Example/TwitchLib.EventSub.Websockets.Example.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
TwitchLib.EventSub.Websockets/Core/NamingPolicies/SnakeCaseNamingPolicy.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Net.WebSockets; | ||
using Microsoft.Extensions.Logging; | ||
using TwitchLib.EventSub.Websockets.Client; | ||
|
||
namespace TwitchLib.EventSub.Websockets.Extensions | ||
{ | ||
internal static partial class LogExtensions | ||
{ | ||
[LoggerMessage(LogLevel.Debug, "{message}")] | ||
public static partial void LogMessage(this ILogger<EventSubWebsocketClient> logger, string message); | ||
|
||
[LoggerMessage(LogLevel.Critical, "Websocket {sessionId} disconnected at {disconnectedAt}. Reason: {disconnectReason}")] | ||
public static partial void LogForceDisconnected(this ILogger<EventSubWebsocketClient> logger, string sessionId, DateTime? disconnectedAt, string disconnectReason); | ||
|
||
[LoggerMessage(LogLevel.Warning, "Websocket reconnect for SessionId {sessionId} requested!")] | ||
public static partial void LogReconnectRequested(this ILogger<EventSubWebsocketClient> logger, string sessionId); | ||
|
||
[LoggerMessage(LogLevel.Error, "Websocket reconnect for SessionId {sessionId} failed!")] | ||
public static partial void LogReconnectFailed(this ILogger<EventSubWebsocketClient> logger, string sessionId); | ||
|
||
[LoggerMessage(LogLevel.Warning, "Found unknown message type: {messageType}")] | ||
public static partial void LogUnknownMessageType(this ILogger<EventSubWebsocketClient> logger, string messageType); | ||
|
||
[LoggerMessage(LogLevel.Critical, "{closeStatus} - {closeStatusDescription}")] | ||
public static partial void LogWebsocketClosed(this ILogger<WebsocketClient> logger, WebSocketCloseStatus closeStatus, string closeStatusDescription); | ||
} | ||
} |
53 changes: 0 additions & 53 deletions
53
TwitchLib.EventSub.Websockets/Extensions/StringExtensions.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.