From 0840bb9ba246d928161516e65a7b12e7ed08701b Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 27 Dec 2014 13:06:32 -0500 Subject: move web socket classes to server project --- MediaBrowser.Common/Net/IWebSocketConnection.cs | 72 ------------------------- 1 file changed, 72 deletions(-) delete mode 100644 MediaBrowser.Common/Net/IWebSocketConnection.cs (limited to 'MediaBrowser.Common/Net/IWebSocketConnection.cs') diff --git a/MediaBrowser.Common/Net/IWebSocketConnection.cs b/MediaBrowser.Common/Net/IWebSocketConnection.cs deleted file mode 100644 index b7715e20b..000000000 --- a/MediaBrowser.Common/Net/IWebSocketConnection.cs +++ /dev/null @@ -1,72 +0,0 @@ -using MediaBrowser.Model.Net; -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace MediaBrowser.Common.Net -{ - public interface IWebSocketConnection : IDisposable - { - /// - /// Occurs when [closed]. - /// - event EventHandler Closed; - - /// - /// Gets the id. - /// - /// The id. - Guid Id { get; } - - /// - /// Gets the last activity date. - /// - /// The last activity date. - DateTime LastActivityDate { get; } - - /// - /// Gets or sets the receive action. - /// - /// The receive action. - Action OnReceive { get; set; } - - /// - /// Gets the state. - /// - /// The state. - WebSocketState State { get; } - - /// - /// Gets the remote end point. - /// - /// The remote end point. - string RemoteEndPoint { get; } - - /// - /// Sends a message asynchronously. - /// - /// - /// The message. - /// The cancellation token. - /// Task. - /// message - Task SendAsync(WebSocketMessage message, CancellationToken cancellationToken); - - /// - /// Sends a message asynchronously. - /// - /// The buffer. - /// The cancellation token. - /// Task. - Task SendAsync(byte[] buffer, CancellationToken cancellationToken); - - /// - /// Sends a message asynchronously. - /// - /// The text. - /// The cancellation token. - /// Task. - /// buffer - Task SendAsync(string text, CancellationToken cancellationToken); - } -} \ No newline at end of file -- cgit v1.2.3