Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the RoutedEventCondtion class.
 /// </summary>
 /// <param name="routedEvent"></param>
 /// <param name="sender"></param>
 /// <param name="senderType"></param>
 /// <param name="direction"></param>
 public RoutedEventCondition(RoutedEvent routedEvent, string sender, EventBehaviorSenderType senderType, RoutingDirection direction)
 {
     this.routedEvent = routedEvent;
     this.sender      = sender;
     this.senderType  = senderType;
     this.direction   = direction;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the RoutedEventCondition class from
 /// routed event, sender, sender's type, and unary operator used in the condition.
 /// </summary>
 /// <param name="routedEvent"></param>
 /// <param name="sender"></param>
 /// <param name="senderType"></param>
 /// <param name="direction"></param>
 /// <param name="unaryOperator"></param>
 public RoutedEventCondition(RoutedEvent routedEvent, string sender, EventBehaviorSenderType senderType, RoutingDirection direction, UnaryOperator unaryOperator)
 {
     this.routedEvent   = routedEvent;
     this.sender        = sender;
     this.senderType    = senderType;
     this.direction     = direction;
     this.unaryOperator = unaryOperator;
 }
Exemple #3
0
 public static string ErrorLogEntriesForDirection(RoutingDirection direction)
 {
     return string.Format(@" SELECT 
                             ParentDoucmentGuid, DateLastUpdated, RoutingDirection, ErrorMessage
                         FROM 
                             LocalCommandEnvelope                  
                         WHERE 
                             RoutingDirection = {0} 
                         AND 
                             RoutingStatus = {1}
                         GROUP BY
                             ParentDoucmentGuid, ErrorMessage, RoutingDirection
                         ORDER BY 
                             DateLastUpdated DESC", (int)direction, (int)RoutingStatus.Error);
 }