ICallbackBodySerializer.Serialize method
Serializes the callback body based on the provided plan and context.
public (string ContentType, byte[] Body) Serialize(CallbackPlan plan, CallbackRuntimeContext ctx)
| parameter | description |
|---|---|
| plan | The callback plan containing the body definition. |
| ctx | The callback runtime context providing the payload. |
Return Value
A tuple containing the content type and serialized body bytes.
See Also
- record CallbackPlan
- record CallbackRuntimeContext
- interface ICallbackBodySerializer
- namespace Kestrun.Callback