Esempio n. 1
0
 /// <summary>
 /// Get the total number of the active 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 the active runtime conflicts</returns>
 public static int GetAllActiveRuntimeConflictsCount(
     Guid sessionGroupUniqueId)
 {
     using (RuntimeEntityModel context = RuntimeEntityModel.CreateInstance())
     {
         return(RuntimeConflicts.GetActiveConflicts(context, sessionGroupUniqueId).Count());
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Get all the active 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>A queryable collection of all the active runtime conflicts</returns>
 public static IQueryable <RTConflict> GetAllActiveRuntimeConflicts(
     RuntimeEntityModel context,
     Guid sessionGroupUniqueId)
 {
     return(RuntimeConflicts.GetActiveConflicts(context, sessionGroupUniqueId));
 }