共用方式為


ServiceReplicaListener Class

Definition

Represents the communication listener and its properties for a Stateful Service replica. Endpoints given out by the communication listener are associated with the name of the communication listener.

public sealed class ServiceReplicaListener
type ServiceReplicaListener = class
Public NotInheritable Class ServiceReplicaListener
Inheritance
ServiceReplicaListener

Constructors

ServiceReplicaListener(Func<StatefulServiceContext,ICommunicationListener>, String, Boolean)

Initializes a new instance of the ServiceReplicaListener class.

Fields

DefaultName

Provides the default name of the service replica listener.

Properties

CreateCommunicationListener

Gets the factory method for creating the communication listener.

ListenOnSecondary

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.

Name

Gets the name of the communication listener.

Applies to