/// reset the static variables for each Web Request call. public static void ResetStaticVariables() { UUserManager = null; UErrorLog = null; ULoginLog = null; UMaintenanceLogonMessage = null; }
/// <summary> /// initialize variables that are initialized from classes specific to the server, eg. with access to OpenPetra database /// </summary> public static void InitializeStaticVariables( IUserManager AUserManager, IErrorLog AErrorLog, ILoginLog ALoginLog, IMaintenanceLogonMessage AMaintenanceLogonMessage) { UUserManager = AUserManager; UErrorLog = AErrorLog; ULoginLog = ALoginLog; UMaintenanceLogonMessage = AMaintenanceLogonMessage; }
/// <summary> /// initialize variables that are initialized from classes specific to the server, eg. with access to OpenPetra database /// </summary> public static void InitializeStaticVariables(ISystemDefaultsCache ASystemDefaultsCache, ICacheableTablesManager ACacheableTablesManager, IUserManager AUserManager, IErrorLog AErrorLog, IMaintenanceLogonMessage AMaintenanceLogonMessage, IClientAppDomainConnection AClientDomainManager) { USystemDefaultsCache = ASystemDefaultsCache; UCacheableTablesManager = ACacheableTablesManager; UUserManager = AUserManager; UErrorLog = AErrorLog; UMaintenanceLogonMessage = AMaintenanceLogonMessage; UClientDomainManager = AClientDomainManager; }
/// <summary> /// initialize variables that are initialized from classes specific to the server, eg. with access to OpenPetra database /// </summary> public static void InitializeStaticVariables(ISystemDefaultsCache ASystemDefaultsCache, IUserManager AUserManager, IErrorLog AErrorLog, IMaintenanceLogonMessage AMaintenanceLogonMessage) { USystemDefaultsCache = ASystemDefaultsCache; UUserManager = AUserManager; UErrorLog = AErrorLog; UMaintenanceLogonMessage = AMaintenanceLogonMessage; }