Server.Connect 方法 (EndpointAddress, Binding, Uri)
透過特定繫結的端點,準備連接 CEP 伺服器執行中的執行個體。
命名空間: Microsoft.ComplexEventProcessing
組件: Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)
語法
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
參數
- endpointAddress
遠端伺服器的端點。
- binding
連接繫結資訊。
- via
包含通道傳送訊息所使用之傳輸位址的 URI。
傳回值
Type: Microsoft.ComplexEventProcessing.Server
表示遠端伺服器的新 CEP 伺服器執行個體。
備註
因為 StreamInsight 用戶端與伺服器之間的通訊協定是無狀態的,所以接合伺服器的每種方法都會建立連接。 雖然 Server.Connect() 會準備連接,不過實際上並不會與伺服器互動。
請參閱
Connect 超載
Server 類別
Microsoft.ComplexEventProcessing 命名空間
回到頁首