Exemplo n.º 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());
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Acknowledge all the active runtime conflicts of a particular session group.
 /// </summary>
 /// <param name="sessionGroupUniqueId">The unique Id of the session group, to which the conflicts belong</param>
 public static IEnumerable <int> AcknowledgeAllActiveRuntimeConflicts(
     Guid sessionGroupUniqueId)
 {
     using (RuntimeEntityModel context = RuntimeEntityModel.CreateInstance())
     {
         return(RuntimeConflicts.AcknowledgeAllActiveConflicts(context, sessionGroupUniqueId));
     }
 }
Exemplo n.º 3
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));
 }