Table of Contents

Class BrokeredServiceConnection

Namespace
Nerdbank.JsonRpc.BrokeredServices
Assembly
Nerdbank.JsonRpc.dll

Pairs an activated service channel with that activation's actual capabilities.

public sealed class BrokeredServiceConnection : IAsyncDisposable
Inheritance
BrokeredServiceConnection
Implements
Inherited Members

Constructors

BrokeredServiceConnection(IDuplexPipe, IReadOnlyList<string>)

Initializes a new instance of the BrokeredServiceConnection class.

public BrokeredServiceConnection(IDuplexPipe pipe, IReadOnlyList<string> capabilities)

Parameters

pipe IDuplexPipe

The caller-owned service channel.

capabilities IReadOnlyList<string>

The stable identifiers from the winning registration.

Properties

Capabilities

Gets the actual activation's additional contract identifiers.

public IReadOnlyList<string> Capabilities { get; }

Property Value

IReadOnlyList<string>

Pipe

Gets the caller-owned pipe.

public IDuplexPipe Pipe { get; }

Property Value

IDuplexPipe

Methods

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

public ValueTask DisposeAsync()

Returns

ValueTask

A task that represents the asynchronous dispose operation.