IMessageBus.PublishAsync(IDataProducer, IData) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Publishes the specified data using the provided data producer.
public System.Threading.Tasks.Task PublishAsync(Microsoft.Testing.Platform.Extensions.Messages.IDataProducer dataProducer, Microsoft.Testing.Platform.Extensions.Messages.IData data);
abstract member PublishAsync : Microsoft.Testing.Platform.Extensions.Messages.IDataProducer * Microsoft.Testing.Platform.Extensions.Messages.IData -> System.Threading.Tasks.Task
Public Function PublishAsync (dataProducer As IDataProducer, data As IData) As Task
Parameters
- dataProducer
- IDataProducer
The data producer.
- data
- IData
The data to be published.
Returns
A task representing the asynchronous operation.