예제 #1
0
        /***************************************************************************************/

        public void SynchronizationPoint()
        {
            ConfStorageLoad();
            EventServerLoad();

            //foreach (AccessControllerInfo info in ConfStorage.AccessControllerInfoList)
            //{
            //    //EventServer.TamperingEvent(this, "Initialized", info.token, info.);
            //}
            //DoorState state = ConfStorage.DoorStateList[Token];
            foreach (var accessPoint in ConfStorage.AccessPointInfoList.Values)
            {
                var capabilities = accessPoint.Capabilities;
                var token        = accessPoint.token;
                if (capabilities.DisableAccessPoint)
                {
                    EventServer.AccessPointEnabledEvent(this, "Initialized", token,
                                                        ConfStorage.AccessPointState[token].Enabled, string.Empty);
                }
                if (capabilities.TamperSpecified && capabilities.Tamper)
                {
                    EventServer.AccessPointTamperingEvent(this, "Initialized", token,
                                                          ConfStorage.AccessPointTamperingState[token], string.Empty);
                }
            }

            EventServerSave();
            ConfStorageSave();
        }