Udostępnij za pośrednictwem


ServiceRpcDescriptor.ConstructRpcConnection(IDuplexPipe) Method

Definition

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.

Applies to