Server.Connect Method (EndpointAddress)

Prepares a connection to a running instance of a CEP server through an endpoint. WsHttpBinding is used as the default binding.

Namespace:  Microsoft.ComplexEventProcessing
Assembly:  Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)

Syntax

'Declaration
Public Shared Function Connect ( _
    endpointAddress As EndpointAddress _
) As Server
'Usage
Dim endpointAddress As EndpointAddress
Dim returnValue As Server

returnValue = Server.Connect(endpointAddress)
public static Server Connect(
    EndpointAddress endpointAddress
)
public:
static Server^ Connect(
    EndpointAddress^ endpointAddress
)
static member Connect : 
        endpointAddress:EndpointAddress -> Server 
public static function Connect(
    endpointAddress : EndpointAddress
) : Server

Parameters

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 establishes a connection. Server.Connect() prepares the connection, but does not actually interact with the server.

Examples

Server server = Server.Connect(new System.ServiceModel.EndpointAddress(@"https://localhost/StreamInsight/MyInstance"));

See Also

Reference

Server Class

Connect Overload

Microsoft.ComplexEventProcessing Namespace