diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-01-13 20:03:49 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-01-13 20:06:08 +0100 |
| commit | 407f54e7764a6bfd8e4ccc0df897fac7e8c658b4 (patch) | |
| tree | e5247c8f93b3ad80bed96007b17cad2e67a4e291 | |
| parent | ee964f8a58a0324b9e7b2ae37a9d4831f59c922f (diff) | |
Style fixes
| -rw-r--r-- | Emby.Server.Implementations/Session/WebSocketController.cs | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/Emby.Server.Implementations/Session/WebSocketController.cs b/Emby.Server.Implementations/Session/WebSocketController.cs index c3c4b716f..c7ef9b1ce 100644 --- a/Emby.Server.Implementations/Session/WebSocketController.cs +++ b/Emby.Server.Implementations/Session/WebSocketController.cs @@ -1,3 +1,7 @@ +#pragma warning disable CS1591 +#pragma warning disable SA1600 +#nullable enable + using System; using System.Collections.Generic; using System.Linq; @@ -42,7 +46,6 @@ namespace Emby.Server.Implementations.Session private IEnumerable<IWebSocketConnection> GetActiveSockets() => _sockets.Where(i => i.State == WebSocketState.Open); - /// <inheritdoc /> public void AddWebSocket(IWebSocketConnection connection) { _logger.LogDebug("Adding websocket to session {Session}", _session.Id); @@ -76,12 +79,14 @@ namespace Emby.Server.Implementations.Session return Task.CompletedTask; } - return socket.SendAsync(new WebSocketMessage<T> - { - Data = data, - MessageType = name, - MessageId = messageId - }, cancellationToken); + return socket.SendAsync( + new WebSocketMessage<T> + { + Data = data, + MessageType = name, + MessageId = messageId + }, + cancellationToken); } /// <inheritdoc /> |
