VsExtensionMetadataService.SubscribeAsync 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.
Subscribes to metadata changes for a list of sections.
public System.Threading.Tasks.Task<IDisposable> SubscribeAsync (System.Collections.Generic.IReadOnlyList<string> sectionNames, Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionMetadataObserver observer, System.Collections.Generic.IReadOnlyList<string> dependentSections, System.Threading.CancellationToken cancellationToken);
member this.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>
Public Function SubscribeAsync (sectionNames As IReadOnlyList(Of String), observer As IExtensionMetadataObserver, dependentSections As IReadOnlyList(Of String), cancellationToken As CancellationToken) As Task(Of IDisposable)
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.