of<TPayload> static method

DVJobPayload of<TPayload>(
  1. TPayload value
)

Wraps a decoded payload so a durable adapter can rebuild the envelope a handler expects. Handlers are routed by payloadType, so TPayload must be the type the handler was registered for.

Implementation

static DVJobPayload of<TPayload>(TPayload value) =>
    _DVStoredJobPayload<TPayload>(value);