Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Web / PUSG.Web / Static / ISessionService.cs
diff options
context:
space:
mode:
1 files changed, 19 insertions, 0 deletions
-rw-r--r--src/Web/PUSG.Web/Static/ISessionService.cs19
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<string, string> Users { get; }
+
+ List<string> LiveConnections { get; }
+
+ KeyValuePair<string, string> GetUser(string connectionId);
+ }
+}