ServiceReplicaListener.ListenOnSecondary Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether this communication listener should be opened when the replica becomes an
ActiveSecondary.
When this member is false, the communication listener is opened only when the replica becomes
Primary.
The default value for this property is false
.
public bool ListenOnSecondary { get; }
member this.ListenOnSecondary : bool
Public ReadOnly Property ListenOnSecondary As Boolean
Property Value
Remarks
This flag can be set when the primary replica is too busy to serve reads and writes efficiently and the application can tolerate reading stale (but consistent) data, then data can be read from secondary replica.