public void ControlDelay(Guid uid, DelayCommandType commandType) { ControlDelay(RubezhServiceFactory.UID, uid, commandType); }
public void ControlDelay(Guid clientUID, Guid uid, DelayCommandType commandType) { SafeOperationCall(() => { var rubezhService = RubezhServiceFactory.Create(TimeSpan.FromMinutes(10)); using (rubezhService as IDisposable) rubezhService.ControlDelay(clientUID, uid, commandType); }, "ControlDelay"); }
public static void ControlDelay(Guid clientUID, Guid uid, DelayCommandType commandType) { if (commandType == DelayCommandType.Automatic) RubezhServiceManager.SafeRubezhService.GKSetAutomaticRegime(clientUID, uid, GKBaseObjectType.Delay); if (commandType == DelayCommandType.Ignore) RubezhServiceManager.SafeRubezhService.GKSetIgnoreRegime(clientUID, uid, GKBaseObjectType.Delay); if (commandType == DelayCommandType.Manual) RubezhServiceManager.SafeRubezhService.GKSetManualRegime(clientUID, uid, GKBaseObjectType.Delay); if (commandType == DelayCommandType.TurnOn) RubezhServiceManager.SafeRubezhService.GKTurnOn(clientUID, uid, GKBaseObjectType.Delay); if (commandType == DelayCommandType.TurnOnNow) RubezhServiceManager.SafeRubezhService.GKTurnOnNow(clientUID, uid, GKBaseObjectType.Delay); if (commandType == DelayCommandType.TurnOff) RubezhServiceManager.SafeRubezhService.GKTurnOff(clientUID, uid, GKBaseObjectType.Delay); if (commandType == DelayCommandType.TurnOn_InAutomatic) RubezhServiceManager.SafeRubezhService.GKTurnOnInAutomatic(clientUID, uid, GKBaseObjectType.Delay); if (commandType == DelayCommandType.TurnOnNow_InAutomatic) RubezhServiceManager.SafeRubezhService.GKTurnOnNowInAutomatic(clientUID, uid, GKBaseObjectType.Delay); if (commandType == DelayCommandType.TurnOff_InAutomatic) RubezhServiceManager.SafeRubezhService.GKTurnOffInAutomatic(clientUID, uid, GKBaseObjectType.Delay); }
public void ControlDelay(Guid clientUID, Guid uid, DelayCommandType commandType) { ProcedureHelper.ControlDelay(clientUID, uid, commandType); }
public static void ControlDelay(Guid clientUID, Guid uid, DelayCommandType commandType) { if (OnControlDelay != null) OnControlDelay(clientUID, uid, commandType); }