IMessageBus.PublishAsync(IDataProducer, IData) Method

Definition

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.

Applies to