Share via


ServiceBrokerOfExportedServices Class

Definition

Implements the IServiceBroker to be proffered into the GlobalBrokeredServiceContainer in order to effectively proffer all the MEF-activated brokered services in the IDE.

public abstract class ServiceBrokerOfExportedServices : Microsoft.ServiceHub.Framework.IServiceBroker
type ServiceBrokerOfExportedServices = class
    interface IServiceBroker
Public MustInherit Class ServiceBrokerOfExportedServices
Implements IServiceBroker
Inheritance
ServiceBrokerOfExportedServices
Implements

Remarks

A host IDE should derive from this class and apply ExportAttribute to the derived type. At startup, the IDE should acquire this export and call RegisterAndProfferServicesAsync(CancellationToken) to add MEF exported brokered services to the container.

Constructors

Name Description
ServiceBrokerOfExportedServices()

Methods

Name Description
GetBrokeredServiceContainerAsync(CancellationToken)

Gets the global brokered service container.

RegisterAndProfferServices(GlobalBrokeredServiceContainer)

Registers MEF exported brokered services and proffers a factory for them.

RegisterAndProfferServicesAsync(CancellationToken)

Registers MEF exported brokered services and proffers a factory for them.

Explicit Interface Implementations

Name Description
IServiceBroker.AvailabilityChanged
IServiceBroker.GetPipeAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken)
IServiceBroker.GetProxyAsync<T>(ServiceRpcDescriptor, ServiceActivationOptions, CancellationToken)

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