Interface IMayUseSecondaryCriteria
Represents the criteria for using a secondary for operations that may use a secondary.
public interface IMayUseSecondaryCriteria
Properties
EffectiveReadPreference
The effective read preference (initially the same as ReadPreference but possibly altered by the server selector).
ReadPreference EffectiveReadPreference { get; set; }
Property Value
ReadPreference
The read preference.
ReadPreference ReadPreference { get; }
Property Value
Methods
CanUseSecondary(ServerDescription)
Whether a particular secondary can be used.
bool CanUseSecondary(ServerDescription server)
Parameters
server
ServerDescriptionThe server.
Returns
- bool
True if the server can be used.