ToolWindowProvider.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.
Attaches an observer that receives updates about tool window property changes.
public System.Threading.Tasks.Task<IDisposable> SubscribeAsync (IObserver<Microsoft.VisualStudio.RpcContracts.ToolWindows.ToolWindowPropertyChangedArgs> observer, System.Threading.CancellationToken cancellationToken);
abstract member SubscribeAsync : IObserver<Microsoft.VisualStudio.RpcContracts.ToolWindows.ToolWindowPropertyChangedArgs> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<IDisposable>
override this.SubscribeAsync : IObserver<Microsoft.VisualStudio.RpcContracts.ToolWindows.ToolWindowPropertyChangedArgs> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<IDisposable>
Public Function SubscribeAsync (observer As IObserver(Of ToolWindowPropertyChangedArgs), cancellationToken As CancellationToken) As Task(Of IDisposable)
Parameters
- observer
- IObserver<ToolWindowPropertyChangedArgs>
- cancellationToken
- CancellationToken