Пример #1
0
 /// <summary>
 /// Get the total number of the active acknowledgeable runtime conflicts of a particular session group
 /// </summary>
 /// <param name="sessionGroupUniqueId">The unique Id of the session group, for which the runtime conflicts are created</param>
 /// <returns>The total number of all the active acknowledgeable runtime conflicts</returns>
 public static int GetAcknowledgeableActiveRuntimeConflictsCount(
     Guid sessionGroupUniqueId)
 {
     using (RuntimeEntityModel context = RuntimeEntityModel.CreateInstance())
     {
         return(RuntimeConflicts.GetActiveAcknowledgeableConflicts(context, sessionGroupUniqueId).Count());
     }
 }
Пример #2
0
 /// <summary>
 /// Get all the active acknowledgeable runtime conflicts of a particular session group
 /// </summary>
 /// <param name="context">The RuntimeEntityModel instance to be used to query the conflicts</param>
 /// <param name="sessionGroupUniqueId">The unique Id of the session group, for which the runtime conflicts are created</param>
 /// <returns>A queryable collection of the active acknowledgeable runtime conflicts</returns>
 public static IQueryable <RTConflict> GetAcknowledgeableActiveRuntimeConflicts(
     RuntimeEntityModel context,
     Guid sessionGroupUniqueId)
 {
     return(RuntimeConflicts.GetActiveAcknowledgeableConflicts(context, sessionGroupUniqueId));
 }