GlobalBrokeredServiceContainer.ProfferRemoteBroker 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ProfferRemoteBroker(IRemoteServiceBroker, ServiceSource, ImmutableHashSet<ServiceMoniker>)
由遠端 IRemoteServiceBroker 所提供的服務,供此容器存取。
public IDisposable ProfferRemoteBroker (Microsoft.ServiceHub.Framework.IRemoteServiceBroker serviceBroker, Microsoft.VisualStudio.Utilities.ServiceBroker.ServiceSource source, System.Collections.Immutable.ImmutableHashSet<Microsoft.ServiceHub.Framework.ServiceMoniker>? serviceMonikers = default);
member this.ProfferRemoteBroker : Microsoft.ServiceHub.Framework.IRemoteServiceBroker * Microsoft.VisualStudio.Utilities.ServiceBroker.ServiceSource * System.Collections.Immutable.ImmutableHashSet<Microsoft.ServiceHub.Framework.ServiceMoniker> -> IDisposable
Public Function ProfferRemoteBroker (serviceBroker As IRemoteServiceBroker, source As ServiceSource, Optional serviceMonikers As ImmutableHashSet(Of ServiceMoniker) = Nothing) As IDisposable
參數
- serviceBroker
- IRemoteServiceBroker
遠端服務的 Service Broker。
- source
- ServiceSource
正在擷取的遠端服務來自何處。
- serviceMonikers
- ImmutableHashSet<ServiceMoniker>
此 Service Broker 可能要求的一組服務 Moniker。 對於我們不知道完整服務集的遠端訊息代理程式,可能是 null。
只有向這個容器註冊的服務才會從這個 serviceBroker
要求。
傳回
值,可處置以從容器中移除此值 serviceBroker
。
適用於
ProfferRemoteBroker(IServiceBroker, ServiceSource, ImmutableHashSet<ServiceMoniker>)
由遠端 IServiceBroker 所提供的服務,供此容器存取。
public IDisposable ProfferRemoteBroker (Microsoft.ServiceHub.Framework.IServiceBroker serviceBroker, Microsoft.VisualStudio.Utilities.ServiceBroker.ServiceSource source, System.Collections.Immutable.ImmutableHashSet<Microsoft.ServiceHub.Framework.ServiceMoniker>? serviceMonikers = default);
member this.ProfferRemoteBroker : Microsoft.ServiceHub.Framework.IServiceBroker * Microsoft.VisualStudio.Utilities.ServiceBroker.ServiceSource * System.Collections.Immutable.ImmutableHashSet<Microsoft.ServiceHub.Framework.ServiceMoniker> -> IDisposable
Public Function ProfferRemoteBroker (serviceBroker As IServiceBroker, source As ServiceSource, Optional serviceMonikers As ImmutableHashSet(Of ServiceMoniker) = Nothing) As IDisposable
參數
- serviceBroker
- IServiceBroker
遠端服務的 Service Broker。
- source
- ServiceSource
正在擷取的遠端服務來自何處。
- serviceMonikers
- ImmutableHashSet<ServiceMoniker>
此 Service Broker 可能要求的一組服務 Moniker。 對於我們不知道完整服務集的遠端訊息代理程式,可能是 null。
只有向這個容器註冊的服務才會從這個 serviceBroker
要求。
傳回
值,可處置以從容器中移除此值 serviceBroker
。
適用於
ProfferRemoteBroker(IRemoteServiceBroker, MultiplexingStream, ServiceSource, ImmutableHashSet<ServiceMoniker>)
由遠端 IRemoteServiceBroker 所提供的服務,供此容器存取。
public IDisposable ProfferRemoteBroker (Microsoft.ServiceHub.Framework.IRemoteServiceBroker serviceBroker, Nerdbank.Streams.MultiplexingStream? multiplexingStream, Microsoft.VisualStudio.Utilities.ServiceBroker.ServiceSource source, System.Collections.Immutable.ImmutableHashSet<Microsoft.ServiceHub.Framework.ServiceMoniker>? serviceMonikers = default);
member this.ProfferRemoteBroker : Microsoft.ServiceHub.Framework.IRemoteServiceBroker * Nerdbank.Streams.MultiplexingStream * Microsoft.VisualStudio.Utilities.ServiceBroker.ServiceSource * System.Collections.Immutable.ImmutableHashSet<Microsoft.ServiceHub.Framework.ServiceMoniker> -> IDisposable
Public Function ProfferRemoteBroker (serviceBroker As IRemoteServiceBroker, multiplexingStream As MultiplexingStream, source As ServiceSource, Optional serviceMonikers As ImmutableHashSet(Of ServiceMoniker) = Nothing) As IDisposable
參數
- serviceBroker
- IRemoteServiceBroker
- multiplexingStream
- Nerdbank.Streams.MultiplexingStream
選擇性 Nerdbank.Streams.MultiplexingStream 的 ,可用來為每個代理服務布建管道。
- source
- ServiceSource
- serviceMonikers
- ImmutableHashSet<ServiceMoniker>
傳回
值,可處置以從容器中移除此值 serviceBroker
。