[ whitefrost.com | Account Manager 4 Product Page ]

Core.ApplicationContext Class Reference

Inheritance diagram for Core.ApplicationContext:

Core.Interfaces.IApplicationContext

List of all members.

Public Member Functions

delegate void ContextChangedEventHandler (object sender, Core.Objects.ContextEventArgs e)
 ApplicationContext ()
byte[] Decrypt (byte[] data)
byte[] Encrypt (byte[] data)
bool InitializeRSA ()
Boolean Initialize ()
void RaiseContextChanged ()
object GetContextObject (String key)
void SetContextObject (String key, object obj)
Boolean Reset ()
Boolean resetConfig ()
void LogDebug (String message)
void LogError (String message)
void LogWarning (String message)
void Log (String message)
void Log (int level, String message)
void ApplyPowerStatus (int power_level, int backup_level)
void Unsetup ()
void Shutdown (Boolean confirm)
void Shutdown (Boolean confirm, String message)
void Shutdown ()
void Destroy ()

Static Public Member Functions

static
Core.Interfaces.IApplicationContext 
GetInstance ()
static
Core.Interfaces.IApplicationContext 
GetInstance (bool use_database)
static
Core.Interfaces.IApplicationContext 
GetInstance (String context_path, String log_name)
static
Core.Interfaces.IApplicationContext 
GetInstance (String context_path, String log_name, bool use_database)

Public Attributes

const String FILE_CONFIG_NAME = "ApplicationConfiguration.xml"
const String FILE_STATUS_NAME = "ApplicationStatus.xml"
const String CONFIG_PATH = "Config"
const String LOG_PATH = "Logs"
const int POWER_MODE_UNKNOWN = 0
const int POWER_MODE_FULL = 1
const int POWER_MODE_HALF = 2
const int POWER_MODE_LOW = 3
const int POWER_MODE_WARNING = 4
const int POWER_MODE_CRITICAL = 5
const String SERVICE_NAME_MESSENGER = "MessengerService"
const String SERVICE_NAME_STATUS = "StatusService"

Static Public Attributes

static
Core.Interfaces.IApplicationContext 
Singleton = null

Protected Member Functions

virtual void OnContextChanged (Objects.ContextEventArgs e)

Properties

String InstallationId [get]
SqlConnection ConnectionXX [get]
String ConnectionString [get, set]
Core.Data.DbFactory.CONNECTION_TYPE DatabaseType [get, set]
bool UseDatabase [get, set]
bool UseDatabaseLog [get, set]
bool HardenRSA [get, set]
bool ConsoleMode [get, set]
String PreferredLogName [get, set]
Core.Interfaces.ISecurityManager SecurityManager [get]
RSACryptoServiceProvider RSARemove [get]
String RSAContainPath [get, set]
String RSAContainName [get, set]
int BatteryStatus [get, set]
int BackupBatteryStatus [get, set]
int PowerMode [get]
String DeviceId [get, set]
String DeviceName [get, set]
Core.Interfaces.IRuntime ComponentRuntime [get]
Core.Interfaces.IConfig ApplicationStatus [get]
Core.Interfaces.IConfig ApplicationConfig [get]
int ReadyState [get]
String StartupPath [get, set]
Core.Util.Logger.AeiLog Logger [get]

Events

ContextChangedEventHandler ContextChanged

Private Attributes

bool harden_rsa = false
Hashtable context_objects = new Hashtable()
String rsa_contain_name = "CoreBlock"
String rsa_contain_path = null
RSACryptoServiceProvider rsa = null
Core.Interfaces.ISecurityManager security_manager = null
int ready_state = 0
String startup_path = null
Core.Interfaces.IConfig application_status = null
Core.Interfaces.IConfig application_config = null
Core.Interfaces.IRuntime component_runtime = null
Core.Util.Logger.AeiLog logger = null
String device_id = null
String device_name = null
int battery_status = 0
int backup_battery_status = 0
int power_mode = 0
bool console_mode = false
Core.Objects.Runnables.MessengerRunnable messenger_service = null
String preferred_log_name = null
bool use_database = false
bool use_database_log = false
Core.Data.DbFactory.CONNECTION_TYPE database_type = Core.Data.DbFactory.CONNECTION_TYPE.UNKNOWN
String connection_string = null
String installation_id = null


Constructor & Destructor Documentation

Core.ApplicationContext.ApplicationContext (  ) 

Correct path reflection for partial protocol as seen with Mono 2.2 on Ubuntu 8.10 file:/dir/ -> file:///dir


Member Function Documentation

delegate void Core.ApplicationContext.ContextChangedEventHandler ( object  sender,
Core.Objects.ContextEventArgs  e 
)

static Core.Interfaces.IApplicationContext Core.ApplicationContext.GetInstance (  )  [static]

static Core.Interfaces.IApplicationContext Core.ApplicationContext.GetInstance ( bool  use_database  )  [static]

static Core.Interfaces.IApplicationContext Core.ApplicationContext.GetInstance ( String  context_path,
String  log_name 
) [static]

static Core.Interfaces.IApplicationContext Core.ApplicationContext.GetInstance ( String  context_path,
String  log_name,
bool  use_database 
) [static]

byte [] Core.ApplicationContext.Decrypt ( byte[]  data  ) 

byte [] Core.ApplicationContext.Encrypt ( byte[]  data  ) 

bool Core.ApplicationContext.InitializeRSA (  ) 

Boolean Core.ApplicationContext.Initialize (  ) 

virtual void Core.ApplicationContext.OnContextChanged ( Objects.ContextEventArgs  e  )  [protected, virtual]

void Core.ApplicationContext.RaiseContextChanged (  ) 

object Core.ApplicationContext.GetContextObject ( String  key  ) 

void Core.ApplicationContext.SetContextObject ( String  key,
object  obj 
)

Boolean Core.ApplicationContext.Reset (  ) 

Boolean Core.ApplicationContext.resetConfig (  ) 

void Core.ApplicationContext.LogDebug ( String  message  ) 

void Core.ApplicationContext.LogError ( String  message  ) 

void Core.ApplicationContext.LogWarning ( String  message  ) 

void Core.ApplicationContext.Log ( String  message  ) 

void Core.ApplicationContext.Log ( int  level,
String  message 
)

void Core.ApplicationContext.ApplyPowerStatus ( int  power_level,
int  backup_level 
)

void Core.ApplicationContext.Unsetup (  ) 

void Core.ApplicationContext.Shutdown ( Boolean  confirm  ) 

void Core.ApplicationContext.Shutdown ( Boolean  confirm,
String  message 
)

void Core.ApplicationContext.Shutdown (  ) 

void Core.ApplicationContext.Destroy (  ) 


Member Data Documentation

bool Core.ApplicationContext.harden_rsa = false [private]

Hashtable Core.ApplicationContext.context_objects = new Hashtable() [private]

String Core.ApplicationContext.rsa_contain_name = "CoreBlock" [private]

RSACryptoServiceProvider Core.ApplicationContext.rsa = null [private]

const String Core.ApplicationContext.FILE_CONFIG_NAME = "ApplicationConfiguration.xml"

const String Core.ApplicationContext.FILE_STATUS_NAME = "ApplicationStatus.xml"

const String Core.ApplicationContext.CONFIG_PATH = "Config"

const String Core.ApplicationContext.LOG_PATH = "Logs"

String Core.ApplicationContext.startup_path = null [private]

String Core.ApplicationContext.device_id = null [private]

String Core.ApplicationContext.device_name = null [private]

bool Core.ApplicationContext.console_mode = false [private]

const String Core.ApplicationContext.SERVICE_NAME_MESSENGER = "MessengerService"

const String Core.ApplicationContext.SERVICE_NAME_STATUS = "StatusService"

bool Core.ApplicationContext.use_database = false [private]

Core.Data.DbFactory.CONNECTION_TYPE Core.ApplicationContext.database_type = Core.Data.DbFactory.CONNECTION_TYPE.UNKNOWN [private]

String Core.ApplicationContext.installation_id = null [private]


Property Documentation

String Core.ApplicationContext.InstallationId [get]

SqlConnection Core.ApplicationContext.ConnectionXX [get]

String Core.ApplicationContext.ConnectionString [get, set]

Core.Data.DbFactory.CONNECTION_TYPE Core.ApplicationContext.DatabaseType [get, set]

bool Core.ApplicationContext.UseDatabase [get, set]

bool Core.ApplicationContext.UseDatabaseLog [get, set]

bool Core.ApplicationContext.HardenRSA [get, set]

bool Core.ApplicationContext.ConsoleMode [get, set]

String Core.ApplicationContext.PreferredLogName [get, set]

Core.Interfaces.ISecurityManager Core.ApplicationContext.SecurityManager [get]

RSACryptoServiceProvider Core.ApplicationContext.RSARemove [get]

String Core.ApplicationContext.RSAContainPath [get, set]

String Core.ApplicationContext.RSAContainName [get, set]

int Core.ApplicationContext.BatteryStatus [get, set]

int Core.ApplicationContext.BackupBatteryStatus [get, set]

int Core.ApplicationContext.PowerMode [get]

String Core.ApplicationContext.DeviceId [get, set]

String Core.ApplicationContext.DeviceName [get, set]

Core.Interfaces.IRuntime Core.ApplicationContext.ComponentRuntime [get]

Core.Interfaces.IConfig Core.ApplicationContext.ApplicationStatus [get]

Core.Interfaces.IConfig Core.ApplicationContext.ApplicationConfig [get]

int Core.ApplicationContext.ReadyState [get]

String Core.ApplicationContext.StartupPath [get, set]

Core.Util.Logger.AeiLog Core.ApplicationContext.Logger [get]


Event Documentation

ContextChangedEventHandler Core.ApplicationContext.ContextChanged


The documentation for this class was generated from the following file:
Stephen W. Cote, 2009, whitefrost.com