@@ -213,6 +213,7 @@ type internal Metadata =
213213 EncryptionAlgo: string
214214 OrderingKey: byte []
215215 ReplicatedFrom: string
216+ ProducerName: string
216217 NullValue: bool
217218 }
218219
@@ -265,7 +266,7 @@ type Message<'T> internal (messageId: MessageId, data: byte[], key: PartitionKey
265266 properties: IReadOnlyDictionary< string, string>, encryptionCtx: EncryptionContext option,
266267 schemaVersion: byte[], sequenceId: SequenceId, orderingKey: byte[], publishTime: TimeStamp,
267268 eventTime: Nullable< TimeStamp>,
268- redeliveryCount: int32, replicatedFrom: string,
269+ redeliveryCount: int32, replicatedFrom: string, producerName : string ,
269270 getValue: unit -> 'T) =
270271 /// Get the unique message ID associated with this message.
271272 member this.MessageId = messageId
@@ -294,26 +295,28 @@ type Message<'T> internal (messageId: MessageId, data: byte[], key: PartitionKey
294295 member this.RedeliveryCount = redeliveryCount
295296 /// Get name of cluster, from which the message is replicated.
296297 member this.ReplicatedFrom = replicatedFrom
298+ /// Get name of producer of the message
299+ member this.ProducerName = producerName
297300
298301 /// Get the de-serialized value of the message, according the configured Schema.
299302 member this.GetValue () =
300303 getValue()
301304
302305 member internal this.WithMessageId messageId =
303306 Message( messageId, data, key, hasBase64EncodedKey, properties, encryptionCtx, schemaVersion, sequenceId,
304- orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, getValue)
307+ orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, producerName , getValue)
305308 /// Get a new instance of the message with updated data
306309 member this.WithData data =
307310 Message( messageId, data, key, hasBase64EncodedKey, properties, encryptionCtx, schemaVersion, sequenceId,
308- orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, getValue)
311+ orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, producerName , getValue)
309312 /// Get a new instance of the message with updated key
310313 member this.WithKey ( key , hasBase64EncodedKey ) =
311314 Message( messageId, data, key, hasBase64EncodedKey, properties, encryptionCtx, schemaVersion, sequenceId,
312- orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, getValue)
315+ orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, producerName , getValue)
313316 /// Get a new instance of the message with updated properties
314317 member this.WithProperties properties =
315318 Message( messageId, data, key, hasBase64EncodedKey, properties, encryptionCtx, schemaVersion, sequenceId,
316- orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, getValue)
319+ orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, producerName , getValue)
317320
318321type Messages < 'T > internal ( maxNumberOfMessages : int , maxSizeOfMessages : int64 ) =
319322
0 commit comments