62 lines
3.0 KiB
C#
62 lines
3.0 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 STATUS_CONF_KEY = $"{BASE_HASH}:Conf:Status";
|
|
public static readonly string MODE_CONF_KEY = $"{BASE_HASH}:Conf:Mode";
|
|
public static readonly string ALARMS_CONF_KEY = $"{BASE_HASH}:Conf:Alarms";
|
|
public static readonly string PARAMS_CONF_KEY = $"{BASE_HASH}:Conf:Params";
|
|
|
|
// settings utente
|
|
public static readonly string ALARMS_SETT_KEY = $"{BASE_HASH}:Settings:Alarms";
|
|
|
|
// REDIS KEY Dati correnti
|
|
public static readonly string ACT_LOG_CURR_KEY = $"{BASE_HASH}:Current:ActivityLog";
|
|
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:Parameters";
|
|
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
|
|
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 = $"ParamsVal";
|
|
public static readonly string PARAMS_M_QUEUE = $"Parameters";
|
|
public static readonly string PROD_M_QUEUE = $"Production";
|
|
public static readonly string STATUS_M_QUEUE = $"Status";
|
|
public static readonly string TOOLS_M_QUEUE = $"Tools";
|
|
|
|
|
|
#endregion Public Fields
|
|
}
|
|
}
|