Class ReadBindingHandle
Represents a handle to a read binding.
public sealed class ReadBindingHandle : IReadBindingHandle, IReadBinding, IBinding, IDisposable
- Inheritance
-
ReadBindingHandle
- Implements
- Inherited Members
Constructors
ReadBindingHandle(IReadBinding)
Initializes a new instance of the ReadBindingHandle class.
public ReadBindingHandle(IReadBinding readBinding)
Parameters
readBinding
IReadBindingThe read binding.
Properties
ReadPreference
Gets the read preference.
public ReadPreference ReadPreference { get; }
Property Value
- ReadPreference
The read preference.
Session
Gets the session.
public ICoreSessionHandle Session { get; }
Property Value
- ICoreSessionHandle
The session.
Methods
Dispose()
public void Dispose()
Fork()
Returns a new handle to the underlying read binding.
public IReadBindingHandle Fork()
Returns
- IReadBindingHandle
A read binding handle.
GetReadChannelSource(CancellationToken)
Gets a channel source for read operations.
public IChannelSourceHandle GetReadChannelSource(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenThe cancellation token.
Returns
- IChannelSourceHandle
A channel source.
GetReadChannelSourceAsync(CancellationToken)
Gets a channel source for read operations.
public Task<IChannelSourceHandle> GetReadChannelSourceAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<IChannelSourceHandle>
A channel source.