public string GetWindowsTimezone(string linuxTimezone) { OSvCLogService.GetLog().Debug("TimezoneService - GetWindowsTimezone() - Entry"); string windowsTimezone = null; if (_timezonemap.ContainsKey(linuxTimezone)) { _timezonemap.TryGetValue(linuxTimezone, out windowsTimezone); } OSvCLogService.GetLog().Debug("TimezoneService - GetWindowsTimezone() - Exit"); return(windowsTimezone); }
public static TimezoneService GetService() { if (_timezoneService != null) { return(_timezoneService); } try { lock (_sync) { _timezoneService = new TimezoneService(); } } catch (Exception e) { _timezoneService = null; MessageBox.Show(OOOExceptionMessages.TimezoneServiceNotInitialized, Common.Common.ErrorLabel, MessageBoxButtons.OK, MessageBoxIcon.Error); OSvCLogService.GetLog().Error(e.Message, e.StackTrace); } return(_timezoneService); }
private void Debug(string logMessage, string logNote = null) { var log = OSvCLogService.GetLog(); log.Debug(logMessage, logNote); }
private void Error(string logMessage, string logNote = null) { var log = OSvCLogService.GetLog(); log.Error(logMessage, logNote); }
public OutOfOfficeControl(StatusBarControl statusBarControl) { _statusBarControl = statusBarControl; logger = OSvCLogService.GetLog(); InitializeComponent(); }