VsExtensionMetadataService.IInternalExtensionMetadataService.SubscribeAsync Method

Definition

Subscribes to metadata changes for a list of sections.

System.Threading.Tasks.Task<IDisposable> IInternalExtensionMetadataService.SubscribeAsync (System.Collections.Generic.IReadOnlyList<string> sectionNames, Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionMetadataObserver observer, System.Collections.Generic.IReadOnlyList<string> dependentSections, System.Threading.CancellationToken cancellationToken);
abstract member Microsoft.Internal.VisualStudio.Extensibility.Framework.IInternalExtensionMetadataService.SubscribeAsync : System.Collections.Generic.IReadOnlyList<string> * Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionMetadataObserver * System.Collections.Generic.IReadOnlyList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<IDisposable>
override this.Microsoft.Internal.VisualStudio.Extensibility.Framework.IInternalExtensionMetadataService.SubscribeAsync : System.Collections.Generic.IReadOnlyList<string> * Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionMetadataObserver * System.Collections.Generic.IReadOnlyList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<IDisposable>
Function SubscribeAsync (sectionNames As IReadOnlyList(Of String), observer As IExtensionMetadataObserver, dependentSections As IReadOnlyList(Of String), cancellationToken As CancellationToken) As Task(Of IDisposable) Implements IInternalExtensionMetadataService.SubscribeAsync

Parameters

sectionNames
IReadOnlyList<String>

Metadata sections requested for update notifications.

observer
IExtensionMetadataObserver

Observer instance.

dependentSections
IReadOnlyList<String>

List of sections that this observer should wait for.

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

A disposable object to manage lifetime of the subscription.

Implements

Applies to