Function
- Last UpdatedJan 21, 2026
- 1 minute read
Create a method client
Syntax
public Client CreateMethodClient(string ScopeName)
Description
Creates a Method client to the OI Server with the PCS Scopename in the ASB Solution and connects to it.
Create a method client when there are multiple servers or nodes
Syntax
public Client CreateMethodClient(string ScopeName, string ServerMachineName)
Description
Creates a Method client to the OI Server with the PCS Scopename in the ASB Solution on the server node, as the PCS ScopeName could be assigned to multiple servers within the node/across multiple nodes, in an ASB solution.
Internally initializes the client to connect to the specified Gateway Communication Driver instance on the specified computer. See the Gateway Communication Driver User Guide for details about how to specify the instance to which you want to connect.