mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-09 11:46:18 +00:00
updated nuget
This commit is contained in:
@@ -273,7 +273,7 @@ namespace MediaBrowser.Server.Implementations.ServerManager
|
||||
/// dataFunction
|
||||
/// or
|
||||
/// cancellationToken</exception>
|
||||
public async Task SendWebSocketMessageAsync<T>(string messageType, Func<T> dataFunction, IEnumerable<IWebSocketConnection> connections, CancellationToken cancellationToken)
|
||||
private async Task SendWebSocketMessageAsync<T>(string messageType, Func<T> dataFunction, IEnumerable<IWebSocketConnection> connections, CancellationToken cancellationToken)
|
||||
{
|
||||
if (string.IsNullOrEmpty(messageType))
|
||||
{
|
||||
|
||||
@@ -56,6 +56,12 @@ namespace MediaBrowser.Server.Implementations.ServerManager
|
||||
/// <value>The last activity date.</value>
|
||||
public DateTime LastActivityDate { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the id.
|
||||
/// </summary>
|
||||
/// <value>The id.</value>
|
||||
public Guid Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="WebSocketConnection" /> class.
|
||||
/// </summary>
|
||||
@@ -83,6 +89,7 @@ namespace MediaBrowser.Server.Implementations.ServerManager
|
||||
throw new ArgumentNullException("logger");
|
||||
}
|
||||
|
||||
Id = Guid.NewGuid();
|
||||
_jsonSerializer = jsonSerializer;
|
||||
_socket = socket;
|
||||
_socket.OnReceiveBytes = OnReceiveInternal;
|
||||
|
||||
Reference in New Issue
Block a user