Class ReadWriteBindingHandle
Represents a handle to a read-write binding.
public sealed class ReadWriteBindingHandle : IReadWriteBindingHandle, IReadWriteBinding, IReadBindingHandle, IReadBinding, IWriteBindingHandle, IWriteBinding, IBinding, IDisposable
- Inheritance
-
ReadWriteBindingHandle
- Implements
- Inherited Members
Constructors
ReadWriteBindingHandle(IReadWriteBinding)
Initializes a new instance of the ReadWriteBindingHandle class.
public ReadWriteBindingHandle(IReadWriteBinding writeBinding)
Parameters
writeBinding
IReadWriteBindingThe write 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-write binding.
public IReadWriteBindingHandle Fork()
Returns
- IReadWriteBindingHandle
A read-write 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.
GetWriteChannelSource(IMayUseSecondaryCriteria, CancellationToken)
Gets a channel source for write operations that may use a secondary.
public IChannelSourceHandle GetWriteChannelSource(IMayUseSecondaryCriteria mayUseSecondary, CancellationToken cancellationToken)
Parameters
mayUseSecondary
IMayUseSecondaryCriteriaThe may use secondary criteria.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- IChannelSourceHandle
A channel source.
GetWriteChannelSource(CancellationToken)
Gets a channel source for write operations.
public IChannelSourceHandle GetWriteChannelSource(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenThe cancellation token.
Returns
- IChannelSourceHandle
A channel source.
GetWriteChannelSourceAsync(IMayUseSecondaryCriteria, CancellationToken)
Gets a channel source for write operations that may use a secondary.
public Task<IChannelSourceHandle> GetWriteChannelSourceAsync(IMayUseSecondaryCriteria mayUseSecondary, CancellationToken cancellationToken)
Parameters
mayUseSecondary
IMayUseSecondaryCriteriaThe may use secondary criteria.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<IChannelSourceHandle>
A channel source.
GetWriteChannelSourceAsync(CancellationToken)
Gets a channel source for write operations.
public Task<IChannelSourceHandle> GetWriteChannelSourceAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<IChannelSourceHandle>
A channel source.