SseKeepAliveSession.Start(Stream, TimeSpan, ILogger, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a session that wraps the specified output stream
and, when interval is positive and finite, starts emitting
periodic SSE keep-alive comments.
public static Azure.AI.AgentServer.Core.SseKeepAliveSession Start(System.IO.Stream output, TimeSpan interval, Microsoft.Extensions.Logging.ILogger logger, string contextName);
static member Start : System.IO.Stream * TimeSpan * Microsoft.Extensions.Logging.ILogger * string -> Azure.AI.AgentServer.Core.SseKeepAliveSession
Public Shared Function Start (output As Stream, interval As TimeSpan, logger As ILogger, contextName As String) As SseKeepAliveSession
Parameters
- output
- Stream
The underlying transport stream to write to.
- interval
- TimeSpan
The keep-alive emission interval. Pass InfiniteTimeSpan or a non-positive value to create a session without a timer (write synchronization only).
- logger
- ILogger
Logger used for diagnostic messages.
- contextName
- String
A short identifier for log messages (for example, the response or invocation id).