CachedMessageBlock<TCachedMessage>.Add<TQueueMessage> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Add a message from the queue to the block. Converts the queue message to a cached message and stores it at the end of the block.
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
Type Parameters
- TQueueMessage
Parameters
- queueMessage
- TQueueMessage
- dequeueTimeUtc
- DateTime
- dataAdapter
- ICacheDataAdapter<TQueueMessage,TCachedMessage>
Returns
Returns the position of the queued message in the stream