Skip to content

OutboxExtensions.Send(IOutbox, MessageType<T>, MessageId, GrainId, T, DateTimeOffset?)

Send(IOutbox, MessageType<T>, MessageId, GrainId, T, DateTimeOffset?)

staticextension
View source
public static void Send<T>(this IOutbox outbox, MessageType<T> messageType, MessageId messageId, GrainId destination, T body, DateTimeOffset? deliverAt = null)
Encodes and synchronously stages one typed command.

Parameters

outboxIOutbox
The owning grain's outbox.
messageTypeMessageType<T>
The subject and serializer binding.
messageIdMessageId
The stable application command identity.
destinationGrainId
The destination inbox.
bodyT
The body to encode.
deliverAtDateTimeOffset?
The optional earliest time, on the Durable Jobs clock, at which the receiving inbox processes the message. The outbox still delivers the message immediately. See Envelope.