Class SubscribeAsyncOptions
Configuration options that is related to implementations of the ISubscriber<TRequest> interface.
public class SubscribeAsyncOptions : AsyncOptions, IAsyncOptions, IParameterObject
- Inheritance
-
objectSubscribeAsyncOptions
- Implements
- Inherited Members
Constructors
SubscribeAsyncOptions()
Initializes a new instance of the SubscribeAsyncOptions class.
public SubscribeAsyncOptions()
Remarks
The following table shows the initial property values for an instance of SubscribeAsyncOptions.
Property | Initial Value |
---|---|
ThrowIfCancellationWasRequested | false |
Properties
ThrowIfCancellationWasRequested
Gets or sets a value indicating whether to throw an OperationCanceledException (or derived thereof) if a CancellationToken was requested cancelled.
public bool ThrowIfCancellationWasRequested { get; set; }
Property Value
- bool
true
to throw an OperationCanceledException if a CancellationToken was requested cancelled; otherwise,false
.