aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Session/ISessionWebSocketListener.cs
diff options
context:
space:
mode:
authorGreenback <jimcartlidge@yahoo.co.uk>2020-11-28 00:25:20 +0000
committerGreenback <jimcartlidge@yahoo.co.uk>2020-11-28 00:25:20 +0000
commit5cd5a7d4cebe134d8256d4a1b6eadff760fbb2a7 (patch)
treef875a664bd2fc4ce05f772322102ba620917484d /Emby.Server.Implementations/Session/ISessionWebSocketListener.cs
parenta59aeb12e07e7ee1f5453e94aefdc19a190f7d16 (diff)
Removed Lazy implementation.
Diffstat (limited to 'Emby.Server.Implementations/Session/ISessionWebSocketListener.cs')
-rw-r--r--Emby.Server.Implementations/Session/ISessionWebSocketListener.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Session/ISessionWebSocketListener.cs b/Emby.Server.Implementations/Session/ISessionWebSocketListener.cs
new file mode 100644
index 000000000..9b0b28e6e
--- /dev/null
+++ b/Emby.Server.Implementations/Session/ISessionWebSocketListener.cs
@@ -0,0 +1,30 @@
+namespace Emby.Server.Implementations.Session
+{
+ using System.Threading.Tasks;
+ using Jellyfin.Data.Events;
+ using MediaBrowser.Controller.Net;
+
+ /// <summary>
+ /// Defines the <see cref="ISessionWebSocketListener" />.
+ /// </summary>
+ public interface ISessionWebSocketListener
+ {
+ /// <summary>
+ /// Runs processes due to a WebSocket connection event.
+ /// </summary>
+ /// <param name="websocketConnection">The <see cref="IWebSocketConnection"/> instance.</param>
+ void ProcessWebSocketConnected(IWebSocketConnection websocketConnection);
+
+ /// <summary>
+ /// Disposes the object.
+ /// </summary>
+ void Dispose();
+
+ /// <summary>
+ /// Processes a message.
+ /// </summary>
+ /// <param name="message">The <see cref="WebSocketMessageInfo"/>.</param>
+ /// <returns>A <see cref="Task"/>.</returns>
+ Task ProcessMessageAsync(WebSocketMessageInfo message);
+ }
+}