CachedMessageBlock<TCachedMessage>.Add<TQueueMessage> 方法

定义

将队列中的消息添加到块。 将队列消息转换为缓存的消息,并将其存储在块末尾。

public Orleans.Providers.Streams.Common.StreamPosition Add<TQueueMessage> (TQueueMessage queueMessage, DateTime dequeueTimeUtc, Orleans.Providers.Streams.Common.ICacheDataAdapter<TQueueMessage,TCachedMessage> dataAdapter);
member this.Add : 'QueueMessage * DateTime * Orleans.Providers.Streams.Common.ICacheDataAdapter<'QueueMessage, 'CachedMessage (requires 'CachedMessage : struct)> -> Orleans.Providers.Streams.Common.StreamPosition
Public Function Add(Of TQueueMessage) (queueMessage As TQueueMessage, dequeueTimeUtc As DateTime, dataAdapter As ICacheDataAdapter(Of TQueueMessage, TCachedMessage)) As StreamPosition

类型参数

TQueueMessage

参数

queueMessage
TQueueMessage
dequeueTimeUtc
DateTime

返回

返回流中排队消息的位置

适用于