CancelAllRequests Property

HealthVault
Cancels any pending request to HealthVault that was initiated with this connection instance and prevents any new requests from being made.

Namespace: Microsoft.Health
Assembly: Microsoft.Health (in Microsoft.Health.dll) Version: 2.1.0.0 (1.15.1003.9505)

public bool CancelAllRequests { get; set; }

Setting this property to true will cancel any requests that was started using this connection and will prevent new requests from being made. It is up to the caller to start the request on another thread. Cancelling will cause a HealthServiceRequestCancelledException to be thrown on the thread the request was executed on.

If you want to start reusing the connection set the property to false.
Show: