Definition at line 8 of file LocalClient.cs.
Deveel.Data.Protocol.LocalClient.LocalClient |
( |
ISystemContext |
systemContext | ) |
|
|
inline |
Definition at line 12 of file LocalClient.cs.
13 if (systemContext == null)
14 throw new ArgumentNullException(
"systemContext");
16 if (!(systemContext is IDatabaseHandler))
17 throw new ArgumentException(
"The system context does not handle databases");
20 localClients =
new Dictionary<string, IDatabaseClient>();
ISystemContext SystemContext
Dictionary< string, IDatabaseClient > localClients
Deveel.Data.Protocol.LocalClient.~LocalClient |
( |
| ) |
|
|
inlineprivate |
Implements Deveel.Data.Protocol.IClient.
Definition at line 56 of file LocalClient.cs.
58 var databaseName = config.DatabaseName();
59 if (
String.IsNullOrEmpty(databaseName))
60 throw new ArgumentException(
"The given configuration does not provide any database name.");
62 IDatabaseClient client;
63 if (!
localClients.TryGetValue(databaseName, out client)) {
65 if (dbHandler == null)
66 throw new InvalidOperationException(
"The system context does not handle databases");
68 var database = dbHandler.GetDatabase(databaseName);
70 throw new InvalidOperationException(
String.Format(
"The database '{0}' could not be found in the current context.", databaseName));
72 client =
new LocalDatabaseClient(
this, database);
A long string in the system.
ISystemContext SystemContext
Dictionary< string, IDatabaseClient > localClients
void Deveel.Data.Protocol.LocalClient.Dispose |
( |
| ) |
|
|
inline |
void Deveel.Data.Protocol.LocalClient.Dispose |
( |
bool |
disposing | ) |
|
|
inlineprivate |
Definition at line 32 of file LocalClient.cs.
Dictionary< string, IDatabaseClient > localClients
bool Deveel.Data.Protocol.LocalClient.disposed |
|
private |
Dictionary<string, IDatabaseClient> Deveel.Data.Protocol.LocalClient.localClients |
|
private |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Protocol/LocalClient.cs