Jaa


NamedPipeClient Constructor

Definition

Initializes a new instance of the NamedPipeClient class.

public NamedPipeClient (string pipeName, string url, Microsoft.Bot.Streaming.RequestHandler requestHandler, TimeSpan? closeTimeOut = default, TimeSpan? keepAlive = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Streaming.Application.NamedPipeClient : string * string * Microsoft.Bot.Streaming.RequestHandler * Nullable<TimeSpan> * Nullable<TimeSpan> * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Streaming.Application.NamedPipeClient
Public Sub New (pipeName As String, url As String, requestHandler As RequestHandler, Optional closeTimeOut As Nullable(Of TimeSpan) = Nothing, Optional keepAlive As Nullable(Of TimeSpan) = Nothing, Optional logger As ILogger = Nothing)

Parameters

pipeName
String

The name of the named pipe that will initiate connection to a server.

url
String

The server URL to connect to.

requestHandler
RequestHandler

Handler that will receive incoming requests to this client instance.

closeTimeOut
Nullable<TimeSpan>

Optional time out for closing the client connection.

keepAlive
Nullable<TimeSpan>

Optional spacing between keep alives for proactive disconnection detection. If null is provided, no keep alives will be sent.

logger
ILogger

ILogger for the client.

Applies to