aktueller stand
This commit is contained in:
@@ -16,19 +16,6 @@ using static C4IT.Logging.cLogManager;
|
||||
|
||||
namespace C4IT.DataHistoryProvider
|
||||
{
|
||||
public enum eDataHistoryOrigin
|
||||
{
|
||||
Unknown = 0,
|
||||
Main = 1,
|
||||
F4sdAgent = 2,
|
||||
NexthinkNxql = 3,
|
||||
ActiveDirectory = 4,
|
||||
AzureAD = 5,
|
||||
M42Wpm = 6,
|
||||
Intune= 7,
|
||||
Citrix = 8
|
||||
}
|
||||
|
||||
public enum eDataHistoryTableCached { Default = 0, Yes = 1, No = 2 };
|
||||
|
||||
public enum eDataHistoryQueryType { Query = 0, Static = 1 }
|
||||
@@ -645,7 +632,7 @@ namespace C4IT.DataHistoryProvider
|
||||
[JsonIgnore]
|
||||
public cDataHistoryConfigClusters ParentConfig { get; protected set; } = null;
|
||||
|
||||
public eDataHistoryOrigin Origin { get; protected set; } = eDataHistoryOrigin.Unknown;
|
||||
public enumDataHistoryOrigin Origin { get; protected set; } = enumDataHistoryOrigin.Unknown;
|
||||
|
||||
public enumFasdInformationClass InformationClass { get; protected set; } = enumFasdInformationClass.Unknown;
|
||||
|
||||
@@ -675,8 +662,8 @@ namespace C4IT.DataHistoryProvider
|
||||
return;
|
||||
}
|
||||
|
||||
Origin = cXmlParser.GetEnumFromAttribute<eDataHistoryOrigin>(XNode, "Origin", eDataHistoryOrigin.Unknown);
|
||||
if (Origin == eDataHistoryOrigin.Unknown)
|
||||
Origin = cXmlParser.GetEnumFromAttribute<enumDataHistoryOrigin>(XNode, "Origin", enumDataHistoryOrigin.Unknown);
|
||||
if (Origin == enumDataHistoryOrigin.Unknown)
|
||||
{
|
||||
Parser.AddMessage(XNode, $"The <DataCluster> element with Name='{Name}' has no valid 'Type' attribute.", LogLevels.Error);
|
||||
return;
|
||||
@@ -787,7 +774,7 @@ namespace C4IT.DataHistoryProvider
|
||||
|
||||
IsValid = true;
|
||||
Name = "Main";
|
||||
Origin = eDataHistoryOrigin.Main;
|
||||
Origin = enumDataHistoryOrigin.Main;
|
||||
InformationClass = enumFasdInformationClass.Main;
|
||||
|
||||
ParentConfig = Config;
|
||||
@@ -892,10 +879,10 @@ namespace C4IT.DataHistoryProvider
|
||||
|
||||
ParentCluster = Cluster;
|
||||
|
||||
if (Cluster.Origin == eDataHistoryOrigin.Main && XNode.Name == "InformationClass")
|
||||
if (Cluster.Origin == enumDataHistoryOrigin.Main && XNode.Name == "InformationClass")
|
||||
IsBuildInTable = true;
|
||||
|
||||
if (Cluster.Origin == eDataHistoryOrigin.F4sdAgent || Cluster.Origin == eDataHistoryOrigin.M42Wpm || Cluster.Origin == eDataHistoryOrigin.Intune || Cluster.Origin == eDataHistoryOrigin.Citrix)
|
||||
if (Cluster.Origin == enumDataHistoryOrigin.F4sdAgent || Cluster.Origin == enumDataHistoryOrigin.M42Wpm || Cluster.Origin == enumDataHistoryOrigin.Intune || Cluster.Origin == enumDataHistoryOrigin.Citrix)
|
||||
IsVirtual = true;
|
||||
|
||||
Name = cXmlParser.GetStringFromXmlAttribute(XNode, "Name");
|
||||
|
||||
Reference in New Issue
Block a user