ICodeContainerStorageManager.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.
Allows targetBlock
to receive updates about Code Containers accessed by the Shell.
public System.Threading.Tasks.Task<IDisposable> SubscribeAsync (System.Threading.Tasks.Dataflow.ITargetBlock<Microsoft.VisualStudio.Shell.StatefulReadOnlyList<Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainer,int?>> targetBlock, System.Threading.CancellationToken cancellationToken = default);
abstract member SubscribeAsync : System.Threading.Tasks.Dataflow.ITargetBlock<Microsoft.VisualStudio.Shell.StatefulReadOnlyList<Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainer, Nullable<int>>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<IDisposable>
Public Function SubscribeAsync (targetBlock As ITargetBlock(Of StatefulReadOnlyList(Of CodeContainer, Nullable(Of Integer))), Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDisposable)
Parameters
- targetBlock
- ITargetBlock<StatefulReadOnlyList<CodeContainer,Nullable<Int32>>>
- cancellationToken
- CancellationToken