Hello,
I have been working with the Demo Access Control Plugin Application and came across the
FetchConfigurationAsync
method. In this method, I noticed that door and event types are being retrieved via a web service.
However, I need to modify this functionality to fetch the door data directly from our database instead of the web service. Could you please provide guidance on the steps I need to take in order to retrieve the door data from the database? Additionally, it would be helpful if you could share the field names for both the door and event types so I can ensure compatibility with the database structure.
I have also attached a screenshot for your reference, where I’m currently facing challenges. Your help would be greatly appreciated.
Hello,
Demo Access Control Plug-in is just a sample. It uses the Demo Access Control Server Application to simulate an access control system.
https://doc.developer.milestonesys.com/html/samples/PluginSamples/DemoAccessControlPlugin/README.html
Feel free to modify it to suit your needs. _client.GetDoorsAsync() can be replaced with another functionality that gets the door data from your database.
We recommend that you start any new development with using the project template for AccessControl, and then review documentation and this sample for useful bits and pieces. (Avoid starting from this sample, as you may get a GUID conflict when installing at the customers)
I hope you find these articles helpful:
Introduction to Access Control Module (ACM) - https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_accesscontrol.html&tree=tree_4.html
Introduction to the Milestone MIP SDK templates - https://doc.developer.milestonesys.com/html/gettingstarted/VsExtension.html
Step by step guide for Access Control plug-in development - https://doc.developer.milestonesys.com/html/index.html?base=content_1.html&tree=tree_1.html