2b9f74a1b2
* Added autocreate database if not exists
50 lines
1.5 KiB
C#
50 lines
1.5 KiB
C#
namespace Step.Utils
|
|
{
|
|
public static class Constants
|
|
{
|
|
public enum ACTIONS
|
|
{
|
|
READ,
|
|
WRITE
|
|
}
|
|
|
|
public enum ERROR_LEVEL
|
|
{
|
|
INFO = 1,
|
|
WARNING = 2,
|
|
ERROR = 3,
|
|
FATAL = 4
|
|
}
|
|
|
|
// Token fields Keys
|
|
public const string ROLE_LEVEL_KEY = "roleLevel";
|
|
public const string USERNAME_KEY = "username";
|
|
public const string ID_KEY = "id";
|
|
|
|
// Names in the xml file
|
|
public const string SERVER_CONFIG_KEY = "serverConfig";
|
|
public const string NC_CONFIG_KEY = "ncConfig";
|
|
public const string AREAS_CONFIG_KEY = "areasConfig";
|
|
|
|
// Step Areas
|
|
public class AREAS
|
|
{
|
|
public const string PRODUCTION_KEY = "production";
|
|
public const string TOOLING_KEY = "tooling";
|
|
public const string REPORT_KEY = "report";
|
|
public const string ALARMS_KEY = "alarms";
|
|
public const string MAINTENANCE_KEY = "maintenance";
|
|
public const string UTILITIES_KEY = "utilities";
|
|
public const string SCADA_KEY = "scada";
|
|
}
|
|
|
|
// Filenames
|
|
public const string STARTUP_CONFIG_SCHEMA_PATH = "startupValidator.xsd";
|
|
public const string STARTUP_CONFIG_PATH = "startupConfig.xml";
|
|
|
|
// Message Headers
|
|
public const string STOP_SERVER = "StopServer";
|
|
public const string SEND_MESSAGE = "SendMessage";
|
|
}
|
|
}
|