GlobalBrokeredServiceContainer.ProfferRemoteBroker 方法

定义

重载

ProfferRemoteBroker(IRemoteServiceBroker, ServiceSource, ImmutableHashSet<ServiceMoniker>)

远程提供的 IRemoteServiceBroker 供此容器访问的 Proffers 服务。

ProfferRemoteBroker(IServiceBroker, ServiceSource, ImmutableHashSet<ServiceMoniker>)

远程提供的 IServiceBroker 供此容器访问的 Proffers 服务。

ProfferRemoteBroker(IRemoteServiceBroker, MultiplexingStream, ServiceSource, ImmutableHashSet<ServiceMoniker>)

远程提供的 IRemoteServiceBroker 供此容器访问的 Proffers 服务。

ProfferRemoteBroker(IRemoteServiceBroker, ServiceSource, ImmutableHashSet<ServiceMoniker>)

远程提供的 IRemoteServiceBroker 供此容器访问的 Proffers 服务。

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

远程服务的服务代理。

source
ServiceSource

要提供的远程服务来自何处。

serviceMonikers
ImmutableHashSet<ServiceMoniker>

可请求此服务代理的服务名字对象集。 对于我们不知道其完整服务集的真正远程代理,可能为 null。 只会从此 serviceBroker请求注册到此容器的服务。

返回

一个值,该值可以释放以将其从容器中删除 serviceBroker

适用于

ProfferRemoteBroker(IServiceBroker, ServiceSource, ImmutableHashSet<ServiceMoniker>)

远程提供的 IServiceBroker 供此容器访问的 Proffers 服务。

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

远程服务的服务代理。

source
ServiceSource

要提供的远程服务来自何处。

serviceMonikers
ImmutableHashSet<ServiceMoniker>

可请求此服务代理的服务名字对象集。 对于我们不知道其完整服务集的真正远程代理,可能为 null。 只会从此 serviceBroker请求注册到此容器的服务。

返回

一个值,该值可以释放以将其从容器中删除 serviceBroker

适用于

ProfferRemoteBroker(IRemoteServiceBroker, MultiplexingStream, ServiceSource, ImmutableHashSet<ServiceMoniker>)

远程提供的 IRemoteServiceBroker 供此容器访问的 Proffers 服务。

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

适用于