Files
mapo-mono/MP.MONO.Core/Constants.cs
T
2022-03-11 17:18:37 +01:00

53 lines
2.4 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";
// Dati correnti
public static readonly string ACT_LOG_CURR_KEY = $"{BASE_HASH}:Current:ActivityLog";
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_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";
// Canali messaggi REDIS
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_STATS_M_QUEUE = $"MachStats";
public static readonly string MAINT_STATS_M_QUEUE = $"Maintenance";
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
}
}