/// <summary> /// Creating generic traps UP, DOWN component /// </summary> /// <param name="id"> /// trap id /// </param> /// <param name="moduleName"> /// module name /// </param> /// <returns> /// The <see cref="SentinelTrap"/>. /// </returns> private SentinelTrap InitializeDownUpTrap(int id, string moduleName) { SentinelTrap trap = new SentinelTrap(id); trap.AddParameter("ModuleName", moduleName); return(trap); }
/// <summary> /// Method sends auto fixing trap for Text Capture component. /// This is the only component that has such trap. That's why it is hardcoded. /// </summary> /// <param name="moduleName"> /// The module Name. /// </param> private void SendAutoFixTrapForTextCapture(string moduleName) { try { SentinelTrap fixTrapToSend = new SentinelTrap(21502); fixTrapToSend.AddParameter("ErrorCause", "AutoFixingTrap"); RaiseTrap(fixTrapToSend, moduleName, Guid.Empty); } catch (Exception exception) { mLogger.Error(exception); } }