@@ -213,6 +213,7 @@ type internal Metadata =
213213 EncryptionAlgo: string
214214 OrderingKey: byte []
215215 ReplicatedFrom: string
216+ ProducerName: string
216217 }
217218
218219type MessageKey =
@@ -264,7 +265,7 @@ type Message<'T> internal (messageId: MessageId, data: byte[], key: PartitionKey
264265 properties: IReadOnlyDictionary< string, string>, encryptionCtx: EncryptionContext option,
265266 schemaVersion: byte[], sequenceId: SequenceId, orderingKey: byte[], publishTime: TimeStamp,
266267 eventTime: Nullable< TimeStamp>,
267- redeliveryCount: int32, replicatedFrom: string,
268+ redeliveryCount: int32, replicatedFrom: string, producerName : string ,
268269 getValue: unit -> 'T) =
269270 /// Get the unique message ID associated with this message.
270271 member this.MessageId = messageId
@@ -293,26 +294,27 @@ type Message<'T> internal (messageId: MessageId, data: byte[], key: PartitionKey
293294 member this.RedeliveryCount = redeliveryCount
294295 /// Get name of cluster, from which the message is replicated.
295296 member this.ReplicatedFrom = replicatedFrom
296-
297+ /// Get name of producer of the message
298+ member this.ProducerName = producerName
297299 /// Get the de-serialized value of the message, according the configured Schema.
298300 member this.GetValue () =
299301 getValue()
300302
301303 member internal this.WithMessageId messageId =
302304 Message( messageId, data, key, hasBase64EncodedKey, properties, encryptionCtx, schemaVersion, sequenceId,
303- orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, getValue)
305+ orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, producerName , getValue)
304306 /// Get a new instance of the message with updated data
305307 member this.WithData data =
306308 Message( messageId, data, key, hasBase64EncodedKey, properties, encryptionCtx, schemaVersion, sequenceId,
307- orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, getValue)
309+ orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, producerName , getValue)
308310 /// Get a new instance of the message with updated key
309311 member this.WithKey ( key , hasBase64EncodedKey ) =
310312 Message( messageId, data, key, hasBase64EncodedKey, properties, encryptionCtx, schemaVersion, sequenceId,
311- orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, getValue)
313+ orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, producerName , getValue)
312314 /// Get a new instance of the message with updated properties
313315 member this.WithProperties properties =
314316 Message( messageId, data, key, hasBase64EncodedKey, properties, encryptionCtx, schemaVersion, sequenceId,
315- orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, getValue)
317+ orderingKey, publishTime, eventTime, redeliveryCount, replicatedFrom, producerName , getValue)
316318
317319type Messages < 'T > internal ( maxNumberOfMessages : int , maxSizeOfMessages : int64 ) =
318320
0 commit comments