ServiceRpcDescriptor.RpcConnection Class

Definition

Represents an RPC connection.

C++
public: ref class ServiceRpcDescriptor::RpcConnection abstract : IDisposable, Microsoft::IDisposableObservable
Inheritance
ServiceRpcDescriptor.RpcConnection
Derived
Implements

Remarks

This object should self-dispose when the underlying IDuplexPipe completes.

Constructors

Properties

Completion

Gets a Task that completes when the underlying RPC connection has shutdown and any local RPC target objects have been disposed of, if applicable.

IsDisposed

Gets a value indicating whether this instance has been disposed.

TraceSource

Gets or sets the TraceSource that receives log messages regarding the RPC connection.

Methods

AddLocalRpcTarget(Object)

Adds a target object to receive RPC calls.

ConstructRpcClient(Type)

Produces a proxy that provides a strongly-typed API for invoking methods offered by the remote party.

ConstructRpcClient<T>()

Produces a proxy that provides a strongly-typed API for invoking methods offered by the remote party.

Dispose()

Disconnects from the RPC pipe, and disposes of managed and native resources held by this instance.

StartListening()

Begins listening for incoming messages.

Applies to

Tuote Versiot
Visual Studio SDK 2019, 2022