public static void Process(DeviceConfiguration config, ProcessInfo info)
{
if (info.CurrentInstance != null)
{
var sdc = Configuration.Get(config);
if (sdc != null)
{
DataTable variables_DT = null;
foreach (var snapshot in sdc.Snapshots)
{
switch (snapshot.Type)
{
case SnapshotType.Collected:
ProcessCollected(snapshot, info.CurrentData);
break;
case SnapshotType.Generated:
var gec = GeneratedEvents.Configuration.Get(config);
if (gec != null)
{
ProcessGenerated(snapshot, gec, info.CurrentInstance, info.CurrentData);
}
break;
case SnapshotType.Variable:
ProcessVariables(snapshot, variables_DT);
break;
}
}
}
}
}