![]() |
DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
Manages all the open sessions towards a single database within as system. More...
Public Member Functions | |
| ActiveSessionList (IDatabase database) | |
| Initializes a new instance of the ActiveSessionList class that is wrapped around a given database context. More... | |
| bool | IsUserActive (string userName) |
| Determines whether the specific user is active. More... | |
| IEnumerator< ISession > | GetEnumerator () |
| Returns an enumerator that iterates through the collection. More... | |
Package Functions | |
| bool | Add (ISession session) |
| void | Remove (ISession session) |
Properties | |
| IDatabase | Database [get, private set] |
| Gets the database context to which the sessions point to. More... | |
| int | Count [get] |
| Gets the count of the open connections. More... | |
| ISession | this[int index] [get] |
| Gets the ISession at the specified index. More... | |
Private Member Functions | |
| IEnumerator IEnumerable. | GetEnumerator () |
Private Attributes | |
| readonly List< ISession > | sessions |
Manages all the open sessions towards a single database within as system.
Definition at line 27 of file ActiveSessionList.cs.
|
inline |
Initializes a new instance of the ActiveSessionList class that is wrapped around a given database context.
| database | The database context holding the sessions. |
| System.ArgumentNullException | If the provided database database context object is null. |
Definition at line 37 of file ActiveSessionList.cs.
|
inlinepackage |
Definition at line 110 of file ActiveSessionList.cs.
|
inline |
Returns an enumerator that iterates through the collection.
Definition at line 100 of file ActiveSessionList.cs.
|
inlineprivate |
Definition at line 106 of file ActiveSessionList.cs.
|
inline |
Determines whether the specific user is active.
| userName | Name of the user to verify. |
Definition at line 58 of file ActiveSessionList.cs.
|
inlinepackage |
Definition at line 120 of file ActiveSessionList.cs.
|
private |
Definition at line 28 of file ActiveSessionList.cs.
|
get |
Gets the count of the open connections.
The count of open connections.
Definition at line 70 of file ActiveSessionList.cs.
|
getprivate set |
Gets the database context to which the sessions point to.
The database context.
Definition at line 51 of file ActiveSessionList.cs.
|
get |
Gets the ISession at the specified index.
The ISession.
| index | The zero-based index of the session to get. |
Definition at line 86 of file ActiveSessionList.cs.
1.8.10