When opting to use parameters as opposed to a return type, the only options documented in the Usage section are ICollector<T> and IAsyncCollector<T>.
These collectors serialize T to a byte array in the message body but do not provide access to the message metadata elements such as the properties PartitionKey and MessageId. Write access to the metadata is required when using for example deduplication and other features.
MessageSender is a valid alternative output parameter and resolves this impasse, but it is completely undocumented, and can only be found through time consuming trial and error.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 1752a37b-b40a-5613-3416-fd604b281dbc
Version Independent ID: f088004f-f80e-ba5c-e08e-c76ac395c809
When opting to use parameters as opposed to a return type, the only options documented in the Usage section are
ICollector<T>
andIAsyncCollector<T>
.These collectors serialize
T
to a byte array in the message body but do not provide access to the message metadata elements such as the properties PartitionKey and MessageId. Write access to the metadata is required when using for example deduplication and other features.MessageSender
is a valid alternative output parameter and resolves this impasse, but it is completely undocumented, and can only be found through time consuming trial and error.Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.