@@ -806,7 +806,7 @@ public bool SendMessage(string messageName, object parameter)
806806
807807 /// ------------------------------------------------------------------------------------
808808 /// <summary>
809- /// Worker method to invoke commands. It will log the call if it is not an update or idle .
809+ /// Worker method to invoke commands. It will log the call if it is not an update.
810810 /// </summary>
811811 /// <returns><c>true</c> if the message was handled, otherwise <c>false</c></returns>
812812 /// ------------------------------------------------------------------------------------
@@ -821,15 +821,12 @@ private bool SendMessageWorker(string messageName, object parameter)
821821 Debug . Fail ( "The convention is to send messages without the 'On' prefix. " +
822822 "That is added by the message sending code." ) ;
823823#endif
824- if ( messageName != "Idle" )
825- {
826- Trace . WriteLineIf ( showPendingMsgsSwitch . TraceVerbose ,
827- BuildDebugMsg ( "SendMessage::Looking for listeners for Msg: " + messageName ) ,
828- showPendingMsgsSwitch . DisplayName ) ;
829- }
824+ Trace . WriteLineIf ( showPendingMsgsSwitch . TraceVerbose ,
825+ BuildDebugMsg ( "SendMessage::Looking for listeners for Msg: " + messageName ) ,
826+ showPendingMsgsSwitch . DisplayName ) ;
830827 string methodName = "On" + messageName ;
831828 // Logging
832- if ( ! messageName . StartsWith ( "Update" ) && messageName != "Idle" )
829+ if ( ! messageName . StartsWith ( "Update" ) )
833830 {
834831 // We want to log the method if any colleague handles it.
835832 // So we check the list of methods known-to-us first. If we don't find it,
@@ -1040,12 +1037,9 @@ public bool BroadcastMessage(string messageName, object parameter)
10401037 Debug . Fail ( "The convention is to send messages without the 'On' prefix. " +
10411038 "That is added by the message sending code." ) ;
10421039#endif
1043- if ( messageName != "Idle" )
1044- {
1045- Trace . WriteLineIf ( showPendingMsgsSwitch . TraceVerbose ,
1046- BuildDebugMsg ( "BroadcastMessage::Looking for listeners for Msg: " + messageName ) ,
1047- showPendingMsgsSwitch . DisplayName ) ;
1048- }
1040+ Trace . WriteLineIf ( showPendingMsgsSwitch . TraceVerbose ,
1041+ BuildDebugMsg ( "BroadcastMessage::Looking for listeners for Msg: " + messageName ) ,
1042+ showPendingMsgsSwitch . DisplayName ) ;
10491043#if false
10501044 return InvokeOnColleagues ( "On" + messageName , new Type [ ] { typeof ( object ) } ,
10511045 new Object [ ] { parameter } , false , false ) ;
@@ -1094,12 +1088,9 @@ public bool HasReceiver(string messageName)
10941088 if ( messageName . Substring ( 0 , 2 ) == "On" )
10951089 Debug . Fail ( "The convention is to send messages without the 'On' prefix. That is added by the message sending code." ) ;
10961090#endif
1097- if ( messageName != "Idle" )
1098- {
1099- Trace . WriteLineIf ( showPendingMsgsSwitch . TraceVerbose ,
1100- BuildDebugMsg ( "HasReceiver::Checking for listeners for Msg: " + messageName ) ,
1101- showPendingMsgsSwitch . DisplayName ) ;
1102- }
1091+ Trace . WriteLineIf ( showPendingMsgsSwitch . TraceVerbose ,
1092+ BuildDebugMsg ( "HasReceiver::Checking for listeners for Msg: " + messageName ) ,
1093+ showPendingMsgsSwitch . DisplayName ) ;
11031094
11041095
11051096 return InvokeOnColleagues ( "On" + messageName , new Type [ ] { typeof ( object ) } ,
0 commit comments