Server.Connect Method (EndpointAddress, Binding, Uri)
Prepares a connection to a running instance of a CEP server through an endpoint with a specific binding.
Namespace: Microsoft.ComplexEventProcessing
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public static Server Connect(
EndpointAddress endpointAddress,
Binding binding,
Uri via
)
Parameters
- endpointAddress
Type: System.ServiceModel.EndpointAddress
Endpoint of the remote server.
- binding
Type: System.ServiceModel.Channels.Binding
Connection binding information.
- via
Type: System.Uri
The Uri that contains the transport address to which the channel sends messages.
Return Value
Type: Microsoft.ComplexEventProcessing.Server
A new CEP server instance that represents the remote server.
Remarks
Because the protocol between a StreamInsight client and server is stateless, every method that interfaces the server stablishes a connection. Server.Connect() prepares the connection, but does not actually interact with the server.