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
pipeIDuplexPipeThe caller-owned service channel.
capabilitiesIReadOnlyList<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
Pipe
Gets the caller-owned pipe.
public IDuplexPipe Pipe { get; }
Property Value
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.