Skip to content

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

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

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

Parameters

outboxIOutbox
The owning grain's outbox.
messageTypeMessageType<T>
The subject and serializer binding.
messageIdMessageId
The stable application command identity.
destinationIAddressable
The destination grain.
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.