Partager via


MultiplexingRelayServiceBroker Class

Definition

An IRemoteServiceBroker which proffers all services from another IServiceBroker over an existing Nerdbank.Streams.MultiplexingStream.

public ref class MultiplexingRelayServiceBroker : IAsyncDisposable, IDisposable, Microsoft::ServiceHub::Framework::IRemoteServiceBroker
public class MultiplexingRelayServiceBroker : IAsyncDisposable, IDisposable, Microsoft.ServiceHub.Framework.IRemoteServiceBroker
type MultiplexingRelayServiceBroker = class
    interface IRemoteServiceBroker
    interface IDisposable
    interface IAsyncDisposable
Public Class MultiplexingRelayServiceBroker
Implements IAsyncDisposable, IDisposable, IRemoteServiceBroker
Inheritance
MultiplexingRelayServiceBroker
Implements

Constructors

MultiplexingRelayServiceBroker(IServiceBroker, MultiplexingStream)

Initializes a new instance of the MultiplexingRelayServiceBroker class.

Properties

Completion

Gets a Task that completes when this instance is disposed of.

Methods

CancelServiceRequestAsync(Guid)

Releases resources allocated as a result of a prior call to RequestServiceChannelAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken) when the client cannot or will not complete the connection to the requested service.

ConnectToServerAsync(IServiceBroker, Stream, CancellationToken)

Initializes a new instance of the MultiplexingRelayServiceBroker class and establishes a Nerdbank.Streams.MultiplexingStream protocol with the client over the given stream.

Dispose()

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

Dispose(Boolean)
Obsolete.

Disposes of managed and/or unmanaged resources.

DisposeAsync()

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

HandshakeAsync(ServiceBrokerClientMetadata, CancellationToken)

Introduces the client to the server to detail the client's capabilities.

OnAvailabilityChanged(Object, BrokeredServicesChangedEventArgs)

Raises the AvailabilityChanged event.

RequestServiceChannelAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken)

Gets a pipe to a service.

Events

AvailabilityChanged

Occurs when a service previously queried for since the last AvailabilityChanged event may have changed availability.

Applies to