Skip to content

Commit

Permalink
Warnings when autosubscribing to plain IMessages are now correctly di…
Browse files Browse the repository at this point in the history
…splayed
  • Loading branch information
andreasohlund committed Sep 26, 2011
1 parent 5c1a650 commit 072f163
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified Samples/PubSub/PubSub.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion src/unicast/NServiceBus.Unicast/UnicastBus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ void PerformAutoSubcribe()
{
Subscribe(messageType);

if(messageType.IsMessageType())
if(!messageType.IsEventType())
Log.Warn("Future versions of NServiceBus will only autosubscribe messages explicitly marked as IEvent so consider marking messages that are events with the explicit IEvent interface");
}
}
Expand Down

0 comments on commit 072f163

Please sign in to comment.