diff --git a/src/Platform/Microsoft.Testing.Platform/Extensions/IDataConsumer.cs b/src/Platform/Microsoft.Testing.Platform/Extensions/IDataConsumer.cs index d6729e4c79..2b27077124 100644 --- a/src/Platform/Microsoft.Testing.Platform/Extensions/IDataConsumer.cs +++ b/src/Platform/Microsoft.Testing.Platform/Extensions/IDataConsumer.cs @@ -8,6 +8,11 @@ namespace Microsoft.Testing.Platform.Extensions; /// /// Represents a data consumer that can consume data produced by a data producer. /// +/// +/// The message bus does not dispatch data to a consumer when the consumer and producer have the same +/// . Producer and consumer registrations that communicate through the message bus +/// must use different UIDs. An extension that processes its own data should invoke that processing directly. +/// public interface IDataConsumer : IExtension { /// diff --git a/src/Platform/Microsoft.Testing.Platform/Messages/IMessageBus.cs b/src/Platform/Microsoft.Testing.Platform/Messages/IMessageBus.cs index 5c258c0876..c3bb8b8e56 100644 --- a/src/Platform/Microsoft.Testing.Platform/Messages/IMessageBus.cs +++ b/src/Platform/Microsoft.Testing.Platform/Messages/IMessageBus.cs @@ -16,5 +16,9 @@ public interface IMessageBus /// The data producer. /// The data to be published. /// A task representing the asynchronous operation. + /// + /// The data is not dispatched to consumers whose matches the + /// 's UID. + /// Task PublishAsync(IDataProducer dataProducer, IData data); }