Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IServiceBroker Interface

Definition

Namespace:
Microsoft.ServiceHub.Framework
Assembly:
Microsoft.ServiceHub.Framework.dll
Package:
Microsoft.ServiceHub.Framework v4.8.55

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides access to arbitrary services by activating them if necessary and returning an object that may be used to communicate with it.

public interface class IServiceBroker
public interface IServiceBroker
type IServiceBroker = interface
Public Interface IServiceBroker
Derived

Methods

Name Description
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.

Events

Name Description
AvailabilityChanged

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

Extension Methods

Name Description
CompareLocalToRemoteVersionAsync(IServiceBroker, ServiceMoniker, CancellationToken)

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

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.

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