Method SubscribeToResourceAsync
SubscribeToResourceAsync(string, CancellationToken)
Subscribes to updates for a specific resource. When the resource changes, the ResourceUpdated event will be raised.
public Task SubscribeToResourceAsync(string uri, CancellationToken cancellationToken = default)
Parameters
uristringThe URI of the resource to subscribe to.
cancellationTokenCancellationTokenA token to cancel the operation.