Definition at line 3 of file Session.cs.
◆ CreateSession() [1/2]
string HSB.SessionManager.CreateSession |
( |
Session |
sessionData | ) |
|
Definition at line 22 of file Session.cs.
23 {
24
25 string uuid;
26 do
27 {
28 uuid = Guid.NewGuid().ToString().Replace("-", "");
29
30 } while (data.ContainsKey(uuid));
31 CreateSession(uuid, sessionData);
32 return uuid;
33 }
◆ CreateSession() [2/2]
void HSB.SessionManager.CreateSession |
( |
string |
UUID, |
|
|
Session |
sessionData |
|
) |
| |
Definition at line 17 of file Session.cs.
18 {
19 data.Add(UUID, sessionData);
20 }
◆ GetInstance()
Definition at line 11 of file Session.cs.
12 {
13 instance ??= new();
14 return instance;
15 }
◆ GetSession()
Session HSB.SessionManager.GetSession |
( |
string |
token | ) |
|
Definition at line 35 of file Session.cs.
36 {
37 return data[token];
38 }
The documentation for this class was generated from the following file: