From 6fb05a2a6f94e008dc689291d0522f39f87a6622 Mon Sep 17 00:00:00 2001 From: "ivaylo.zhelev" Date: Sun, 24 Jan 2021 14:45:23 +0200 Subject: Initial Commit - Add all project files --- src/Web/PUSG.Web/Static/ISessionService.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/Web/PUSG.Web/Static/ISessionService.cs (limited to 'src/Web/PUSG.Web/Static/ISessionService.cs') diff --git a/src/Web/PUSG.Web/Static/ISessionService.cs b/src/Web/PUSG.Web/Static/ISessionService.cs new file mode 100644 index 0000000..05eae53 --- /dev/null +++ b/src/Web/PUSG.Web/Static/ISessionService.cs @@ -0,0 +1,19 @@ +using System.Collections.Generic; + +namespace PUSG.Web.Static +{ + public interface ISessionService + { + bool IsLogged(string username); + + void AddUser(string connectionId, string username); + + void RemoveUser(string connectionId); + + Dictionary Users { get; } + + List LiveConnections { get; } + + KeyValuePair GetUser(string connectionId); + } +} -- cgit v1.3.1-26-gb76a