你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

StatefulServiceBase.CreateServiceReplicaListeners 方法

定义

重写此方法,为服务副本 (replica) 提供通信侦听器。 通信侦听器返回的终结点存储为 ListenerName 的 JSON 字符串,终结点字符串对,例如 {"Endpoints":{"Listener1":"Endpoint1","Listener2":"Endpoint2" ...}}

有关 Reliable Services 生命周期的信息,请参阅 https://docs.microsoft.com/azure/service-fabric/service-fabric-reliable-services-lifecycle

protected virtual System.Collections.Generic.IEnumerable<Microsoft.ServiceFabric.Services.Communication.Runtime.ServiceReplicaListener> CreateServiceReplicaListeners ();
abstract member CreateServiceReplicaListeners : unit -> seq<Microsoft.ServiceFabric.Services.Communication.Runtime.ServiceReplicaListener>
override this.CreateServiceReplicaListeners : unit -> seq<Microsoft.ServiceFabric.Services.Communication.Runtime.ServiceReplicaListener>
Protected Overridable Function CreateServiceReplicaListeners () As IEnumerable(Of ServiceReplicaListener)

返回

ServiceReplicaListener 的列表

适用于