aktueller stand
This commit is contained in:
@@ -520,8 +520,12 @@ namespace C4IT.DataHistoryProvider
|
||||
if(HasIntuneConfig)
|
||||
{
|
||||
Connectors.Add(enumDataHistoryOrigin.Intune, ActiveDirectory);
|
||||
RegisterSearchRelationProvider(ActiveDirectory);
|
||||
|
||||
}
|
||||
//if (HasIntuneConfig && HasMobileDeviceConfig)
|
||||
//{
|
||||
// RegisterSearchRelationProvider(ActiveDirectory);
|
||||
//}
|
||||
|
||||
// do the post configuration tasks afer the infrastructure was loaded
|
||||
DoProcessUiMessage(1, "processing post configuration tasks");
|
||||
@@ -6491,6 +6495,34 @@ namespace C4IT.DataHistoryProvider
|
||||
return null;
|
||||
}
|
||||
|
||||
public cCollectorStatusInfo GetCollectorStatus(cF4sdWebRequestInfo requestInfo)
|
||||
{
|
||||
MethodBase CM = null; if (cLogManager.DefaultLogger.IsDebug) { CM = MethodBase.GetCurrentMethod(); LogMethodBegin(CM); }
|
||||
try
|
||||
{
|
||||
var _cfgInfrastructure = new cDataHistoryConfigInfrastructure();
|
||||
_cfgInfrastructure.LoadFromFile(out var PMs);
|
||||
var retVal = new cCollectorStatusInfo();
|
||||
|
||||
retVal.HasM42Config = _cfgInfrastructure.M42Wpm != null;
|
||||
retVal.HasIntuneConfig = (_cfgInfrastructure.AzureTenants?.Values.Any(t => t.ScanIntuneDevices) == true);
|
||||
retVal.HasMobileDeviceConfig = (_cfgInfrastructure.AzureTenants?.Values.Any(t => t.WithMobileDevices) == true);
|
||||
retVal.HasCitrixConfig = (InfrastructureConfig.Citrix != null);
|
||||
|
||||
return retVal;
|
||||
}
|
||||
catch (Exception E)
|
||||
{
|
||||
LogException(E);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (CM != null) LogMethodEnd(CM);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public override async Task<cF4SdUserInfoChange> ValidateTokenAsync(cF4SDTokenRegistration TokenRegistration, cF4sdWebRequestInfo requestInfo, int LogDeep, CancellationToken Token)
|
||||
{
|
||||
MethodBase CM = null; if (cLogManager.DefaultLogger.IsDebug) { CM = MethodBase.GetCurrentMethod(); LogMethodBegin(CM); }
|
||||
@@ -6723,6 +6755,14 @@ namespace C4IT.DataHistoryProvider
|
||||
}
|
||||
}
|
||||
|
||||
public class cCollectorStatusInfo
|
||||
{
|
||||
public bool HasM42Config;
|
||||
public bool HasIntuneConfig;
|
||||
public bool HasMobileDeviceConfig;
|
||||
public bool HasCitrixConfig;
|
||||
}
|
||||
|
||||
public class cDataHistorySHistoryScanInfo
|
||||
{
|
||||
public Guid ID;
|
||||
|
||||
Reference in New Issue
Block a user