using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace MP.MONO.Core { //// //// This is here so CodeMaid doesn't reorganize this document //// public class Constants { #region Public Fields // dati conf REDIS Cache public static readonly string BASE_HASH = "MAPO-MONO"; public static readonly string BASE_PATH = Directory.GetCurrentDirectory(); //public static readonly string BASE_PATH = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) ?? Directory.GetCurrentDirectory(); // Configurazioni public static readonly string ACTLOG_CONF_KEY = $"{BASE_HASH}:Conf:ActLog"; public static readonly string ALARMS_CONF_KEY = $"{BASE_HASH}:Conf:Alarms"; public static readonly string ALARM_LOG_ENABLED = $"{BASE_HASH}:Conf:AlarmLogEnabled"; public static readonly string ALARMS_ADAP_CONF_KEY = $"{BASE_HASH}:Conf:AdapterAlarms"; public static readonly string ALARMS_CONF_BBIT_KEY = $"{BASE_HASH}:Conf:AlarmsBankBit"; public static readonly string ALARMS_CONF_RLIST_KEY = $"{BASE_HASH}:Conf:AlarmsRawList"; public static readonly string MACHINE_CONF_PLATE = $"{BASE_HASH}:Conf:MachinePlate"; public static readonly string ALARMS_MODE_KEY = $"{BASE_HASH}:Conf:AlarmMode"; public static readonly string MODE_CONF_KEY = $"{BASE_HASH}:Conf:Mode"; public static readonly string PARAMS_CONF_KEY = $"{BASE_HASH}:Conf:Params"; public static readonly string DISPLSTATUS_CONF_KEY = $"{BASE_HASH}:Conf:Status"; public static readonly string PALLSTATUS_CONF_KEY = $"{BASE_HASH}:Conf:PalletStatus"; public static readonly string TOOLS_CONF_KEY = $"{BASE_HASH}:Conf:Tools"; public static readonly string MP_STATUS_CONF_KEY = $"{BASE_HASH}:Conf:MacProcStatus"; public static readonly string CNT_STATUS_CONF_KEY = $"{BASE_HASH}:Conf:CountStatus"; // settings utente public static readonly string ALARMS_SETT_BBIT_KEY = $"{BASE_HASH}:Settings:AlarmsBankBit"; public static readonly string ALARMS_SETT_MUTED_KEY = $"{BASE_HASH}:Settings:AlarmsMuted"; public static readonly string ALARMS_SETT_RLIST_KEY = $"{BASE_HASH}:Settings:AlarmsRawList"; // REDIS KEY Dati correnti public static readonly string ACT_LOG_CURR_KEY = $"{BASE_HASH}:Current:ActivityLog"; public static readonly string ALARM_ADAPTER_ACT_KEY = $"{BASE_HASH}:Current:AdapterAlarm"; public static readonly string ALARM_ACT_KEY = $"{BASE_HASH}:Current:AlarmsVal"; public static readonly string ALARM_BLINK_CURR_KEY = $"{BASE_HASH}:Current:AlarmsBlink"; public static readonly string ALARM_CURR_KEY = $"{BASE_HASH}:Current:Alarms"; public static readonly string ALARM_LOG_SAVED = $"{BASE_HASH}:Current:AlarmsLogSaved"; public static readonly string ALARM_RECEIV_KEY = $"{BASE_HASH}:Current:AlarmsReceived"; public static readonly string ALARM_PEND_KEY = $"{BASE_HASH}:Current:AlarmsPendingClose"; public static readonly string EVENT_LOG_CURR_KEY = $"{BASE_HASH}:Current:EventsLog"; public static readonly string MACH_DAY_DUR_CURR_KEY = $"{BASE_HASH}:Current:MachDayDur"; public static readonly string MACH_STATS_CURR_KEY = $"{BASE_HASH}:Current:MachStats"; public static readonly string MAINT_STATS_CURR_KEY = $"{BASE_HASH}:Current:Maintenance"; public static readonly string PARAMS_ACT_KEY = $"{BASE_HASH}:Current:ParamsVal"; public static readonly string PARAMS_CURR_KEY = $"{BASE_HASH}:Current:Params"; public static readonly string PROD_CURR_KEY = $"{BASE_HASH}:Current:Production"; public static readonly string STATUS_ACT_KEY = $"{BASE_HASH}:Current:StatusVal"; public static readonly string STATUS_LAST_KEY = $"{BASE_HASH}:Current:StatusLastVal"; public static readonly string STATUS_PARETO_KEY = $"{BASE_HASH}:Current:StatusPareto"; public static readonly string STATUS_CURR_KEY = $"{BASE_HASH}:Current:Status"; public static readonly string TOOLS_ACT_KEY = $"{BASE_HASH}:Current:ToolsVal"; public static readonly string TOOLS_CURR_KEY = $"{BASE_HASH}:Current:Tools"; public static readonly string COUNT_CURR_KEY = $"{BASE_HASH}:Current:Counters"; // REDIS KEY Dati cache public static readonly string DATA_LOG_KEY = $"{BASE_HASH}:Cache:DataLog"; public static readonly string DATA_LOG_DTO_KEY = $"{BASE_HASH}:Cache:DataLogDto"; // REDIS Channels messaggi (verso UI) public static readonly string ACT_LOG_M_QUEUE = $"ActivityLog"; public static readonly string ALARM_M_QUEUE = $"Alarms"; public static readonly string EVENT_LOG_M_QUEUE = $"EventsLog"; public static readonly string MACH_DAY_DUR_M_QUEUE = $"MachDayDur"; public static readonly string MACH_STATS_M_QUEUE = $"MachStats"; public static readonly string MAINT_STATS_M_QUEUE = $"Maintenance"; public static readonly string PARAMS_M_QUEUE = $"Params"; public static readonly string PROD_M_QUEUE = $"Production"; public static readonly string STATUS_M_QUEUE = $"Status"; public static readonly string STATUS_PAR_QUEUE = $"StatusPareto"; public static readonly string COUNT_M_QUEUE = $"Count"; public static readonly string TOOLS_M_QUEUE = $"Tools"; // REDIS Channels messaggi (verso DECODER) public static readonly string ALARM_RAW_QUEUE = $"AlarmsRawVal"; public static readonly string COUNT_RAW_QUEUE = $"CountRawVal"; public static readonly string PARAMS_RAW_QUEUE = $"ParamsRawVal"; public static readonly string STATUS_RAW_QUEUE = $"StatusRawVal"; public static readonly string TOOLS_RAW_QUEUE = $"ToolsRawVal"; //REDIS caching keys public static readonly string ALARM_REC = $"{BASE_HASH}:Current:AlarmsRecVal"; public static readonly string ALARM_LOG = $"{BASE_HASH}:Current:AlarmsLogVal"; #endregion Public Fields } }