ServiceRpcDescriptor.ConstructRpcConnection(IDuplexPipe) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Establishes an RPC connection over an IDuplexPipe.
public:
abstract Microsoft::ServiceHub::Framework::ServiceRpcDescriptor::RpcConnection ^ ConstructRpcConnection(System::IO::Pipelines::IDuplexPipe ^ pipe);
public abstract Microsoft.ServiceHub.Framework.ServiceRpcDescriptor.RpcConnection ConstructRpcConnection (System.IO.Pipelines.IDuplexPipe pipe);
abstract member ConstructRpcConnection : System.IO.Pipelines.IDuplexPipe -> Microsoft.ServiceHub.Framework.ServiceRpcDescriptor.RpcConnection
Public MustOverride Function ConstructRpcConnection (pipe As IDuplexPipe) As ServiceRpcDescriptor.RpcConnection
Parameters
- pipe
- IDuplexPipe
The pipe used to send and receive RPC messages.
Returns
An object representing the lifetime of the connection.
Remarks
Callers are expected to call ConstructRpcClient<T>() and/or AddLocalRpcTarget(Object) on the result value before invoking StartListening() to begin the RPC session.