Dear folks,
We are developing Plug-in based Integration in C# to integrate XProtect EventServer with InnerRange’s Access Control System - “Integriti”.
We initially add a New Access Control Node in XProtect Management Client by providing Details about Integriti. Then we sync / download all Access Control Elements(ACElements)like Doors, Areas,Inputs , Auxs etc to XProtect by clicking Next & finally Save in XProtect by clicking Apply button manually.
After this initial configuration is done , how can we programmatically sync/download Access Control Elements(ACElements) (Say once in 15 minutes)from our Access Control System(Integriti) without clicking “Refresh Configuration” button?
We tried below code. But it doesn’t save the latest ACElements to XProtect DB.
In below code remoteConfiguration holds list of latest ACElements to be synced to XProtect.
List remoteConfiguration = [];
var doors = RetrieveDoorConfiguration().Result;
if (doors != null)
remoteConfiguration.AddRange(doors);
else
return;
//Here we have similar code to fetch Area, Inputs, Outputs etc.
var acConfiguration = BuildConfiguration(CurrentConfiguration.ACServer.Id, remoteConfiguration);
FireFetchConfigurationStatusChanged(new(acConfiguration));
System.Threading.Thread.Sleep(2000);
ApplyConfiguration(acConfiguration);
Your early reply would be very much needed…