Esempio n. 1
0
 /// <summary>
 /// returns true if the given TriggerGroup
 ///             is paused
 /// </summary>
 /// <param name="groupName"/>
 /// <returns/>
 public Task <bool> IsTriggerGroupPaused(string groupName, CancellationToken cancellationToken = default(CancellationToken))
 {
     _logger.Info("IsTriggerGroupPaused");
     return(Task.FromResult(DoWithLock(() => _storage.IsTriggerGroupPaused(groupName),
                                       string.Format("Error on IsTriggerGroupPaused - Group {0}", groupName))));
 }
Esempio n. 2
0
 /// <summary>
 /// returns true if the given TriggerGroup
 ///             is paused
 /// </summary>
 /// <param name="groupName"/>
 /// <returns/>
 public bool IsTriggerGroupPaused(string groupName)
 {
     _logger.Info("IsTriggerGroupPaused");
     return(DoWithLock(() => _storage.IsTriggerGroupPaused(groupName),
                       string.Format("Error on IsTriggerGroupPaused - Group {0}", groupName)));
 }