Definition at line 46 of file Session.cs.
◆ Session() [1/2]
Definition at line 53 of file Session.cs.
54 {
55 attributes = [];
56 ExpirationTime = -1;
57
58 }
◆ Session() [2/2]
HSB.Session.Session |
( |
long |
expirationTime | ) |
|
Definition at line 60 of file Session.cs.
61 {
62
63 ExpirationTime = expirationTime;
64 attributes = [];
65 valid = true;
66 }
◆ GetAttribute< T >()
T? HSB.Session.GetAttribute< T > |
( |
string |
name | ) |
|
Definition at line 70 of file Session.cs.
71 {
72 return (T)attributes[name] ?? default;
73 }
◆ SetAttribute< T >()
void HSB.Session.SetAttribute< T > |
( |
string |
name, |
|
|
T |
item |
|
) |
| |
Definition at line 76 of file Session.cs.
77 {
78 attributes.Add(name, item!);
79 }
◆ attributes
readonly Dictionary<string, object> HSB.Session.attributes |
◆ ExpirationTime
long HSB.Session.ExpirationTime |
|
getset |
The documentation for this class was generated from the following file: