Share via


RemoteServiceBroker Class

Definition

Exposes a remote IRemoteServiceBroker service as a local IServiceBroker.

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

Properties

Completion

Gets a Task that completes when this instance is disposed or the underlying Stream it was created with (if applicable) is closed.

TraceSource

Gets or sets the TraceSource this instance will use for trace messages.

Methods

ConnectToMultiplexingServerAsync(IRemoteServiceBroker, MultiplexingStream, CancellationToken)

Initializes a new instance of the RemoteServiceBroker class.

ConnectToMultiplexingServerAsync(Stream, CancellationToken)

Initializes a new instance of the RemoteServiceBroker class that connects to an IRemoteServiceBroker on the default channel after establishing a Nerdbank.Streams.MultiplexingStream on the given Stream.

ConnectToMultiplexingServerAsync(Stream, MultiplexingStream+Options, CancellationToken)

Initializes a new instance of the RemoteServiceBroker class that connects to an IRemoteServiceBroker on the default channel after establishing a Nerdbank.Streams.MultiplexingStream on the given Stream.

ConnectToMultiplexingServerAsync(Stream, MultiplexingStream+Options, TraceSource, CancellationToken)

Initializes a new instance of the RemoteServiceBroker class that connects to an IRemoteServiceBroker on the default channel after establishing a Nerdbank.Streams.MultiplexingStream on the given Stream.

ConnectToServerAsync(IDuplexPipe, CancellationToken)

Initializes a new instance of the RemoteServiceBroker class.

ConnectToServerAsync(IDuplexPipe, TraceSource, CancellationToken)

Initializes a new instance of the RemoteServiceBroker class.

ConnectToServerAsync(IRemoteServiceBroker, CancellationToken)

Initializes a new instance of the RemoteServiceBroker class.

ConnectToServerAsync(String, CancellationToken)

Initializes a new instance of the RemoteServiceBroker class.

ConnectToServerAsync(String, TraceSource, CancellationToken)

Initializes a new instance of the RemoteServiceBroker class.

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.

GetPipeAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken)

Requests access to some service through an IDuplexPipe.

GetProxyAsync<T>(ServiceRpcDescriptor, ServiceActivationOptions, CancellationToken)

Requests access to some service through a client proxy.

OfferLocalServiceHostAsync(CancellationToken)

Offers the local environment as a host for services proffered by the remote service broker when they can be activated locally.

OnAvailabilityChanged(Object, BrokeredServicesChangedEventArgs)

Raises the AvailabilityChanged event.

SetAuthorizationService(IAuthorizationService, JoinableTaskFactory)
Obsolete.

Sets the authorization service to use to obtain the default value for ClientCredentials for all service requests that do not explicitly provide it.

SetAuthorizationService(IAuthorizationService)

Sets the authorization service to use to obtain the default value for ClientCredentials for all service requests that do not explicitly provide it.

Events

AvailabilityChanged

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

Extension Methods

GetPipeAsync(IServiceBroker, ServiceMoniker, CancellationToken)

Requests access to some service through an IDuplexPipe.

GetProxyAsync<T>(IServiceBroker, ServiceJsonRpcDescriptor<T>, CancellationToken)

Requests access to some service through a client proxy.

GetProxyAsync<T>(IServiceBroker, ServiceRpcDescriptor, CancellationToken)

Requests access to some service through a client proxy.

CompareLocalToRemoteVersionAsync(IServiceBroker, ServiceMoniker, CancellationToken)

Compares a locally recognized service to what is available remotely for the same service.

ReportMissingServiceAsync(IServiceBroker, String, String, ServiceMoniker, Guid, UInt32, CancellationToken)

Presents modeless UI to the user that explains why a feature is disabled or operating with reduced functionality.

Applies to