78 lines
4.3 KiB
C#
78 lines
4.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MP.MONO.Core
|
|
{
|
|
//// <Auto-Generated>
|
|
//// This is here so CodeMaid doesn't reorganize this document
|
|
//// </Auto-Generated>
|
|
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 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 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 STATUS_CONF_KEY = $"{BASE_HASH}:Conf:Status";
|
|
public static readonly string TOOLS_CONF_KEY = $"{BASE_HASH}:Conf:Tools";
|
|
|
|
// settings utente
|
|
public static readonly string ALARMS_SETT_BBIT_KEY = $"{BASE_HASH}:Settings:AlarmsBankBit";
|
|
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_CURR_KEY = $"{BASE_HASH}:Current:Alarms";
|
|
public static readonly string EVENT_LOG_CURR_KEY = $"{BASE_HASH}:Current:EventsLog";
|
|
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_CURR_KEY = $"{BASE_HASH}:Current:Status";
|
|
public static readonly string TOOLS_CURR_KEY = $"{BASE_HASH}:Current:Tools";
|
|
|
|
// REDIS Channels messaggi (verso UI)
|
|
public static readonly string ACT_LOG_M_QUEUE = $"ActivityLog";
|
|
public static readonly string ALARM_ACT_QUEUE = $"AlarmsActVal";
|
|
public static readonly string ALARM_M_QUEUE = $"Alarms";
|
|
public static readonly string EVENT_LOG_M_QUEUE = $"EventsLog";
|
|
public static readonly string MACH_STATS_M_QUEUE = $"MachStats";
|
|
public static readonly string MAINT_STATS_M_QUEUE = $"Maintenance";
|
|
public static readonly string PARAMS_ACT_QUEUE = $"ParamsActVal";
|
|
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 TOOLS_M_QUEUE = $"Tools";
|
|
|
|
// REDIS Channels messaggi RAW (ADAPTER <--> DECODER)
|
|
public static readonly string RAW_ALARM_ACT_QUEUE = $"AlarmsActVal";
|
|
public static readonly string RAW_ALARM_M_QUEUE = $"Alarms";
|
|
public static readonly string RAW_EVENT_LOG_M_QUEUE = $"EventsLog";
|
|
public static readonly string RAW_MACH_STATS_M_QUEUE = $"MachStats";
|
|
public static readonly string RAW_MAINT_STATS_M_QUEUE = $"Maintenance";
|
|
public static readonly string RAW_PROD_M_QUEUE = $"Production";
|
|
public static readonly string RAW_STATUS_M_QUEUE = $"Status";
|
|
|
|
|
|
#endregion Public Fields
|
|
}
|
|
}
|