Freigeben über


GlobalBrokeredServiceContainer.Proffer Method

Definition

Overloads

Proffer(GlobalBrokeredServiceContainer+IProffered)

Indexes a proffered service factory or broker for fast lookup.

Proffer(IServiceBroker, IReadOnlyCollection<ServiceMoniker>)

Proffers services from another IServiceBroker into this container.

Proffer(ServiceRpcDescriptor, AuthorizingBrokeredServiceFactory)

Proffers a service for publication via an IServiceBroker associated with this container.

Proffer(ServiceRpcDescriptor, BrokeredServiceFactory)

Proffers a service for publication via an IServiceBroker associated with this container.

Proffer(GlobalBrokeredServiceContainer+IProffered)

Indexes a proffered service factory or broker for fast lookup.

protected virtual IDisposable Proffer (Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.IProffered proffered);
abstract member Proffer : Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.IProffered -> IDisposable
override this.Proffer : Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.IProffered -> IDisposable
Protected Overridable Function Proffer (proffered As GlobalBrokeredServiceContainer.IProffered) As IDisposable

Parameters

proffered
GlobalBrokeredServiceContainer.IProffered

The proffering wrapper.

Returns

A value that may be disposed to cancel the proffer and remove its services from the index.

Applies to

Proffer(IServiceBroker, IReadOnlyCollection<ServiceMoniker>)

Proffers services from another IServiceBroker into this container.

public:
 IDisposable ^ Proffer(Microsoft::ServiceHub::Framework::IServiceBroker ^ serviceBroker, System::Collections::Generic::IReadOnlyCollection<Microsoft::ServiceHub::Framework::ServiceMoniker ^> ^ serviceMonikers);
public IDisposable Proffer (Microsoft.ServiceHub.Framework.IServiceBroker serviceBroker, System.Collections.Generic.IReadOnlyCollection<Microsoft.ServiceHub.Framework.ServiceMoniker> serviceMonikers);
member this.Proffer : Microsoft.ServiceHub.Framework.IServiceBroker * System.Collections.Generic.IReadOnlyCollection<Microsoft.ServiceHub.Framework.ServiceMoniker> -> IDisposable
Public Function Proffer (serviceBroker As IServiceBroker, serviceMonikers As IReadOnlyCollection(Of ServiceMoniker)) As IDisposable

Parameters

serviceBroker
IServiceBroker

A service broker offering local services.

serviceMonikers
IReadOnlyCollection<ServiceMoniker>

The monikers to services that should be obtained from this serviceBroker.

Returns

A value that can be disposed to remove this serviceBroker from the container.

Applies to

Proffer(ServiceRpcDescriptor, AuthorizingBrokeredServiceFactory)

Proffers a service for publication via an IServiceBroker associated with this container.

public:
 virtual IDisposable ^ Proffer(Microsoft::ServiceHub::Framework::ServiceRpcDescriptor ^ serviceDescriptor, Microsoft::VisualStudio::Shell::ServiceBroker::AuthorizingBrokeredServiceFactory ^ factory);
public IDisposable Proffer (Microsoft.ServiceHub.Framework.ServiceRpcDescriptor serviceDescriptor, Microsoft.VisualStudio.Shell.ServiceBroker.AuthorizingBrokeredServiceFactory factory);
abstract member Proffer : Microsoft.ServiceHub.Framework.ServiceRpcDescriptor * Microsoft.VisualStudio.Shell.ServiceBroker.AuthorizingBrokeredServiceFactory -> IDisposable
override this.Proffer : Microsoft.ServiceHub.Framework.ServiceRpcDescriptor * Microsoft.VisualStudio.Shell.ServiceBroker.AuthorizingBrokeredServiceFactory -> IDisposable
Public Function Proffer (serviceDescriptor As ServiceRpcDescriptor, factory As AuthorizingBrokeredServiceFactory) As IDisposable

Parameters

serviceDescriptor
ServiceRpcDescriptor

The descriptor for the service. The Moniker is used to match service requests to the factory. The ConstructRpcConnection(IDuplexPipe) method is used to convert the service returned by the factory to a pipe when the client prefers that.

factory
AuthorizingBrokeredServiceFactory

The delegate that will create new instances of the service for each client.

Returns

A value that can be disposed to remove the proffered service from availability.

Implements

Applies to

Proffer(ServiceRpcDescriptor, BrokeredServiceFactory)

Proffers a service for publication via an IServiceBroker associated with this container.

public:
 virtual IDisposable ^ Proffer(Microsoft::ServiceHub::Framework::ServiceRpcDescriptor ^ serviceDescriptor, Microsoft::VisualStudio::Shell::ServiceBroker::BrokeredServiceFactory ^ factory);
public IDisposable Proffer (Microsoft.ServiceHub.Framework.ServiceRpcDescriptor serviceDescriptor, Microsoft.VisualStudio.Shell.ServiceBroker.BrokeredServiceFactory factory);
abstract member Proffer : Microsoft.ServiceHub.Framework.ServiceRpcDescriptor * Microsoft.VisualStudio.Shell.ServiceBroker.BrokeredServiceFactory -> IDisposable
override this.Proffer : Microsoft.ServiceHub.Framework.ServiceRpcDescriptor * Microsoft.VisualStudio.Shell.ServiceBroker.BrokeredServiceFactory -> IDisposable
Public Function Proffer (serviceDescriptor As ServiceRpcDescriptor, factory As BrokeredServiceFactory) As IDisposable

Parameters

serviceDescriptor
ServiceRpcDescriptor

The descriptor for the service. The Moniker is used to match service requests to the factory. The ConstructRpcConnection(IDuplexPipe) method is used to convert the service returned by the factory to a pipe when the client prefers that.

factory
BrokeredServiceFactory

The delegate that will create new instances of the service for each client.

Returns

A value that can be disposed to remove the proffered service from availability.

Implements

Applies to