GlobalBrokeredServiceContainer.ProfferRemoteBroker Method
Definition
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.
Overloads
ProfferRemoteBroker(IRemoteServiceBroker, ServiceSource, ImmutableHashSet<ServiceMoniker>) |
Proffers services offered by a remote IRemoteServiceBroker for access by this container. |
ProfferRemoteBroker(IServiceBroker, ServiceSource, ImmutableHashSet<ServiceMoniker>) |
Proffers services offered by a remote IServiceBroker for access by this container. |
ProfferRemoteBroker(IRemoteServiceBroker, MultiplexingStream, ServiceSource, ImmutableHashSet<ServiceMoniker>) |
Proffers services offered by a remote IRemoteServiceBroker for access by this container. |
ProfferRemoteBroker(IRemoteServiceBroker, ServiceSource, ImmutableHashSet<ServiceMoniker>)
Proffers services offered by a remote IRemoteServiceBroker for access by this container.
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
Parameters
- serviceBroker
- IRemoteServiceBroker
The service broker for remote services.
- source
- ServiceSource
Where the remote services that are being proffered come from.
- serviceMonikers
- ImmutableHashSet<ServiceMoniker>
The set of service monikers that may be requested of this service broker. May be null for truly remote brokers that we don't know the full set of services for.
Only services registered with this container will ever be requested from this serviceBroker
.
Returns
A value that can be disposed to remove this serviceBroker
from the container.
Applies to
ProfferRemoteBroker(IServiceBroker, ServiceSource, ImmutableHashSet<ServiceMoniker>)
Proffers services offered by a remote IServiceBroker for access by this container.
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
Parameters
- serviceBroker
- IServiceBroker
The service broker for remote services.
- source
- ServiceSource
Where the remote services that are being proffered come from.
- serviceMonikers
- ImmutableHashSet<ServiceMoniker>
The set of service monikers that may be requested of this service broker. May be null for truly remote brokers that we don't know the full set of services for.
Only services registered with this container will ever be requested from this serviceBroker
.
Returns
A value that can be disposed to remove this serviceBroker
from the container.
Applies to
ProfferRemoteBroker(IRemoteServiceBroker, MultiplexingStream, ServiceSource, ImmutableHashSet<ServiceMoniker>)
Proffers services offered by a remote IRemoteServiceBroker for access by this container.
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
Parameters
- serviceBroker
- IRemoteServiceBroker
- multiplexingStream
- Nerdbank.Streams.MultiplexingStream
An optional Nerdbank.Streams.MultiplexingStream that may be used to provision pipes for each brokered service.
- source
- ServiceSource
- serviceMonikers
- ImmutableHashSet<ServiceMoniker>
Returns
A value that can be disposed to remove this serviceBroker
from the container.