CallbackRuntimeContextFactory.FromHttpContext method
Creates a CallbackRuntimeContext from the given HttpContext.
public static CallbackRuntimeContext FromHttpContext(KestrunContext ctx, string? urlTemplate = null)
| parameter | description |
|---|---|
| ctx | The HTTP context from which to create the callback runtime context. |
| urlTemplate | An optional URL template to extract template parameters for idempotency key generation. |
Return Value
A new instance of CallbackRuntimeContext populated with data from the HTTP context.
See Also
- record CallbackRuntimeContext
- record KestrunContext
- class CallbackRuntimeContextFactory
- namespace Kestrun.Callback