Partager via


ExtensionPartManager Class

Definition

A manager to get components out of Gladstone extensions and managing their lifecycle.

public class ExtensionPartManager : IDisposable, Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionPartManager
type ExtensionPartManager = class
    interface IExtensionPartManager
    interface IDisposable
Public Class ExtensionPartManager
Implements IDisposable, IExtensionPartManager
Inheritance
ExtensionPartManager
Implements

Remarks

This implementation is meant to be used by IDE hosts, components should query the IDE per the supported extensibility mechanism and not create their own instance.

Constructors

ExtensionPartManager(IServiceBroker, JoinableTaskFactory)

Initializes a new instance of the ExtensionPartManager class.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetCollectionAsync<T>(CancellationToken)

Gets a dynamic collection of parts that implement a certain contract in new extensibility framework.

GetCollectionAsync<T>(Func<IEnumerable<ExtensionPartMetadata>,Boolean>, CancellationToken)

Gets a dynamic collection of parts 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.

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.

GetServiceDescriptor(ServiceMoniker, ExtensionIdentificationToken)

Gets the service descriptor for a given service moniker.

Applies to