public void ControlGuardZone(Guid uid, GuardZoneCommandType commandType) { ControlGuardZone(RubezhServiceFactory.UID, uid, commandType); }
public void ControlGuardZone(Guid clientUID, Guid uid, GuardZoneCommandType commandType) { SafeOperationCall(() => { var rubezhService = RubezhServiceFactory.Create(TimeSpan.FromMinutes(10)); using (rubezhService as IDisposable) rubezhService.ControlGuardZone(clientUID, uid, commandType); }, "ControlGuardZone"); }
public static void ControlGuardZone(Guid clientUID, Guid uid, GuardZoneCommandType commandType) { if (commandType == GuardZoneCommandType.Automatic) RubezhServiceManager.SafeRubezhService.GKSetAutomaticRegime(clientUID, uid, GKBaseObjectType.GuardZone); if (commandType == GuardZoneCommandType.Ignore) RubezhServiceManager.SafeRubezhService.GKSetIgnoreRegime(clientUID, uid, GKBaseObjectType.GuardZone); if (commandType == GuardZoneCommandType.Manual) RubezhServiceManager.SafeRubezhService.GKSetManualRegime(clientUID, uid, GKBaseObjectType.GuardZone); if (commandType == GuardZoneCommandType.Reset) RubezhServiceManager.SafeRubezhService.GKReset(clientUID, uid, GKBaseObjectType.GuardZone); if (commandType == GuardZoneCommandType.TurnOn) RubezhServiceManager.SafeRubezhService.GKTurnOn(clientUID, uid, GKBaseObjectType.GuardZone); if (commandType == GuardZoneCommandType.TurnOnNow) RubezhServiceManager.SafeRubezhService.GKTurnOnNow(clientUID, uid, GKBaseObjectType.GuardZone); if (commandType == GuardZoneCommandType.TurnOff) RubezhServiceManager.SafeRubezhService.GKTurnOff(clientUID, uid, GKBaseObjectType.GuardZone); if (commandType == GuardZoneCommandType.TurnOffNow) RubezhServiceManager.SafeRubezhService.GKTurnOffNow(clientUID, uid, GKBaseObjectType.GuardZone); if (commandType == GuardZoneCommandType.TurnOnInAutomatic) RubezhServiceManager.SafeRubezhService.GKTurnOnInAutomatic(clientUID, uid, GKBaseObjectType.GuardZone); if (commandType == GuardZoneCommandType.TurnOnNowInAutomatic) RubezhServiceManager.SafeRubezhService.GKTurnOnNowInAutomatic(clientUID, uid, GKBaseObjectType.GuardZone); if (commandType == GuardZoneCommandType.TurnOffInAutomatic) RubezhServiceManager.SafeRubezhService.GKTurnOffInAutomatic(clientUID, uid, GKBaseObjectType.GuardZone); if (commandType == GuardZoneCommandType.TurnOffNowInAutomatic) RubezhServiceManager.SafeRubezhService.GKTurnOffNowInAutomatic(clientUID, uid, GKBaseObjectType.GuardZone); }
public void ControlGuardZone(Guid clientUID, Guid uid, GuardZoneCommandType commandType) { ProcedureHelper.ControlGuardZone(clientUID, uid, commandType); }
public static void ControlGuardZone(Guid clientUID, Guid uid, GuardZoneCommandType commandType) { if (OnControlGuardZone != null) OnControlGuardZone(clientUID, uid, commandType); }