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
)
public:
static Server^ Connect(
EndpointAddress^ endpointAddress,
Binding^ binding,
Uri^ via
)
static member Connect :
endpointAddress:EndpointAddress *
binding:Binding *
via:Uri -> Server
Public Shared Function Connect (
endpointAddress As EndpointAddress,
binding As Binding,
via As Uri
) As Server
Parameters
endpointAddress
Type: System.ServiceModel.EndpointAddressThe endpoint of the remote server.
binding
Type: System.ServiceModel.Channels.BindingThe connection binding information.
via
Type: System.UriThe 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 establishes a connection. Server.Connect() prepares the connection, but does not actually interact with the server.
See Also
Connect Overload
Server Class
Microsoft.ComplexEventProcessing Namespace
Return to top