Share via


IServiceBroker 介面

定義

視需要啟用任意服務,並傳回可用來與其通訊的物件,以提供任意服務的存取權。

public interface class IServiceBroker
public interface IServiceBroker
type IServiceBroker = interface
Public Interface IServiceBroker
衍生

方法

GetPipeAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken)

透過 IDuplexPipe要求存取某些服務。

GetProxyAsync<T>(ServiceRpcDescriptor, ServiceActivationOptions, CancellationToken)

要求透過用戶端 Proxy 存取某些服務。

事件

AvailabilityChanged

發生於先前在上 AvailabilityChanged 一個事件之後查詢的服務可能已變更可用性時。

擴充方法

GetPipeAsync(IServiceBroker, ServiceMoniker, CancellationToken)

透過 IDuplexPipe要求存取某些服務。

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

要求透過用戶端 Proxy 存取某些服務。

GetProxyAsync<T>(IServiceBroker, ServiceRpcDescriptor, CancellationToken)

要求透過用戶端 Proxy 存取某些服務。

CompareLocalToRemoteVersionAsync(IServiceBroker, ServiceMoniker, CancellationToken)

比較本機辨識的服務與相同服務遠端可用的服務。

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

向用戶呈現無模式UI,說明為何停用功能或以縮減的功能操作。

適用於