Add ILoggerFactory to StreamableHttpServerTransport (#1213)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com> Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
parent
e47f88419c
commit
5084a79068
1 changed files with 33 additions and 6 deletions
|
|
@ -238,7 +238,7 @@ internal sealed class StreamableHttpHandler(
|
|||
if (!HttpServerTransportOptions.Stateless)
|
||||
{
|
||||
sessionId = MakeNewSessionId();
|
||||
transport = new()
|
||||
transport = new(loggerFactory)
|
||||
{
|
||||
SessionId = sessionId,
|
||||
FlowExecutionContextFromRequests = !HttpServerTransportOptions.PerSessionExecutionContext,
|
||||
|
|
@ -252,7 +252,7 @@ internal sealed class StreamableHttpHandler(
|
|||
// If in the future we support resuming stateless requests, we should populate
|
||||
// the event stream store and retry interval here as well.
|
||||
sessionId = "";
|
||||
transport = new()
|
||||
transport = new(loggerFactory)
|
||||
{
|
||||
Stateless = true,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue