DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Package Functions | Properties | Private Member Functions | Private Attributes | List of all members
Deveel.Data.SystemContext Class Reference

This is the context of a database system, that handles the configurations and services used by all the databases managed within this scope. More...

Inheritance diagram for Deveel.Data.SystemContext:
Deveel.Data.Context Deveel.Data.ISystemContext Deveel.Data.IContext Deveel.Data.Configuration.IConfigurationProvider Deveel.Data.Diagnostics.IEventScope Deveel.Data.IContext

Public Member Functions

DatabaseContext CreateDatabaseContext (IConfiguration configuration)
 
- Public Member Functions inherited from Deveel.Data.Context
void Dispose ()
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from Deveel.Data.Context
 Context ()
 
 Context (IContext parent)
 

Package Functions

 SystemContext (IConfiguration configuration, ServiceContainer container)
 

Properties

IConfiguration Configuration [get, private set]
 Gets the system configuration object More...
 
override IScope ContextScope [get]
 
override string ContextName [get]
 
IEventRegistry IEventScope. EventRegistry [get]
 
EventRegistry EventRegistry [get, private set]
 
- Properties inherited from Deveel.Data.Context
abstract string ContextName [get]
 
virtual IScope ContextScope [get]
 
IContext ParentContext [get, private set]
 
IContext IContext. Parent [get]
 
IScope IContext. Scope [get]
 
string IContext. Name [get]
 
- Properties inherited from Deveel.Data.IContext
IContext Parent [get]
 
string Name [get]
 
IScope Scope [get]
 
- Properties inherited from Deveel.Data.Configuration.IConfigurationProvider
IConfiguration Configuration [get]
 
- Properties inherited from Deveel.Data.Diagnostics.IEventScope
IEventRegistry EventRegistry [get]
 

Private Member Functions

IDatabaseContext ISystemContext. CreateDatabaseContext (IConfiguration configuration)
 

Private Attributes

IScope scope
 

Detailed Description

This is the context of a database system, that handles the configurations and services used by all the databases managed within this scope.

Definition at line 28 of file SystemContext.cs.

Constructor & Destructor Documentation

Deveel.Data.SystemContext.SystemContext ( IConfiguration  configuration,
ServiceContainer  container 
)
inlinepackage

Definition at line 31 of file SystemContext.cs.

31  {
32  if (configuration == null)
33  throw new ArgumentNullException("configuration");
34 
35  Configuration = configuration;
36 
37  scope = container.OpenScope(ContextNames.System);
38  scope.RegisterInstance<IConfiguration>(configuration);
39  scope.RegisterInstance<ISystemContext>(this);
40 
41  EventRegistry = new EventRegistry(this);
42  }
Defines the contract for the configuration node of a component within the system or of the system its...
IEventRegistry IEventScope. EventRegistry

Member Function Documentation

DatabaseContext Deveel.Data.SystemContext.CreateDatabaseContext ( IConfiguration  configuration)
inline

Implements Deveel.Data.ISystemContext.

Definition at line 57 of file SystemContext.cs.

57  {
58  return new DatabaseContext(this, configuration);
59  }
IDatabaseContext ISystemContext. Deveel.Data.SystemContext.CreateDatabaseContext ( IConfiguration  configuration)
inlineprivate

Implements Deveel.Data.ISystemContext.

Definition at line 61 of file SystemContext.cs.

61  {
62  var dbConfig = Configuration.MergeWith(configuration);
63  return CreateDatabaseContext(dbConfig);
64  }
DatabaseContext CreateDatabaseContext(IConfiguration configuration)
override void Deveel.Data.SystemContext.Dispose ( bool  disposing)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Context.

Definition at line 72 of file SystemContext.cs.

72  {
73  if (disposing) {
74  if (scope != null)
75  scope.Dispose();
76  }
77 
78  scope = null;
79  base.Dispose(true);
80  }

Member Data Documentation

IScope Deveel.Data.SystemContext.scope
private

Definition at line 29 of file SystemContext.cs.

Property Documentation

IConfiguration Deveel.Data.SystemContext.Configuration
getprivate set

Gets the system configuration object

Definition at line 47 of file SystemContext.cs.

override string Deveel.Data.SystemContext.ContextName
getprotected

Definition at line 53 of file SystemContext.cs.

override IScope Deveel.Data.SystemContext.ContextScope
getprotected

Definition at line 49 of file SystemContext.cs.

IEventRegistry IEventScope. Deveel.Data.SystemContext.EventRegistry
getprivate

Definition at line 66 of file SystemContext.cs.

EventRegistry Deveel.Data.SystemContext.EventRegistry
getprivate set

Definition at line 70 of file SystemContext.cs.


The documentation for this class was generated from the following file: