protected virtual void Dispose(bool isDisposing) { if (_log.IsDebugEnabled) { _log.DebugFormat("Starting {0}", MethodBase.GetCurrentMethod().ToString()); } if (!isDisposed) { if (isDisposing) { if (ProcessTimer != null) { ProcessTimer.Stop(); ProcessTimer.Dispose(); ProcessTimer = null; } OpenDMX.Stop(); isDisposed = true; } } if (_log.IsDebugEnabled) { _log.DebugFormat("Ending {0}", MethodBase.GetCurrentMethod().ToString()); } }
void ApplyNewChannelValue(int channel, byte value) { if (_log.IsDebugEnabled) { _log.DebugFormat("Starting {0}", MethodBase.GetCurrentMethod().ToString()); } if (InTestMode) { if (_log.IsWarnEnabled) { _log.WarnFormat("Set Channel {0}, Value {1}", channel.ToString(System.Globalization.CultureInfo.CurrentCulture), value.ToString(System.Globalization.CultureInfo.CurrentCulture)); } } else { OpenDMX.SetDmxValue(channel, value); } if (_log.IsDebugEnabled) { _log.DebugFormat("Ending {0}", MethodBase.GetCurrentMethod().ToString()); } }