Udostępnij za pośrednictwem


ExtensionPartManager.GetLazyCollectionAsync Method

Definition

Overloads

GetLazyCollectionAsync<TContract>(CancellationToken)

Gets a dynamic collection of part metadata and a lazy constructor that implement a certain contract in new extensibility framework.

GetLazyCollectionAsync<TContract>(Func<ServiceMoniker,ServiceRpcDescriptor>, CancellationToken)

Gets a dynamic collection of part metadata and a lazy constructor that implement a certain contract in new extensibility framework.

GetLazyCollectionAsync<TContract>(CancellationToken)

Gets a dynamic collection of part metadata and a lazy constructor that implement a certain contract in new extensibility framework.

public System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionPartLazyCollection<TContract>> GetLazyCollectionAsync<TContract> (System.Threading.CancellationToken cancellationToken) where TContract : class;
abstract member GetLazyCollectionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionPartLazyCollection<'Contract>> (requires 'Contract : null)
override this.GetLazyCollectionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionPartLazyCollection<'Contract>> (requires 'Contract : null)
Public Function GetLazyCollectionAsync(Of TContract As Class) (cancellationToken As CancellationToken) As Task(Of IExtensionPartLazyCollection(Of TContract))

Type Parameters

TContract

RPC contract interface type.

Parameters

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

an enumeration of proxies that implement contract interface.

Implements

Applies to

GetLazyCollectionAsync<TContract>(Func<ServiceMoniker,ServiceRpcDescriptor>, CancellationToken)

Gets a dynamic collection of part metadata and a lazy constructor that implement a certain contract in new extensibility framework.

public System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionPartLazyCollection<TContract>> GetLazyCollectionAsync<TContract> (Func<Microsoft.ServiceHub.Framework.ServiceMoniker,Microsoft.ServiceHub.Framework.ServiceRpcDescriptor> descriptorFactory, System.Threading.CancellationToken cancellationToken) where TContract : class;
abstract member GetLazyCollectionAsync : Func<Microsoft.ServiceHub.Framework.ServiceMoniker, Microsoft.ServiceHub.Framework.ServiceRpcDescriptor> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionPartLazyCollection<'Contract>> (requires 'Contract : null)
override this.GetLazyCollectionAsync : Func<Microsoft.ServiceHub.Framework.ServiceMoniker, Microsoft.ServiceHub.Framework.ServiceRpcDescriptor> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionPartLazyCollection<'Contract>> (requires 'Contract : null)
Public Function GetLazyCollectionAsync(Of TContract As Class) (descriptorFactory As Func(Of ServiceMoniker, ServiceRpcDescriptor), cancellationToken As CancellationToken) As Task(Of IExtensionPartLazyCollection(Of TContract))

Type Parameters

TContract

RPC contract interface type.

Parameters

descriptorFactory
Func<ServiceMoniker,ServiceRpcDescriptor>

A factory method callback used to get the descriptor to be used for proxies.

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

an enumeration of proxies that implement contract interface.

Implements

Applies to