ServiceInstanceListener Constructor

Definition

Initializes a new instance of the ServiceInstanceListener class.

public ServiceInstanceListener (Func<System.Fabric.StatelessServiceContext,Microsoft.ServiceFabric.Services.Communication.Runtime.ICommunicationListener> createCommunicationListener, string name = "");
new Microsoft.ServiceFabric.Services.Communication.Runtime.ServiceInstanceListener : Func<System.Fabric.StatelessServiceContext, Microsoft.ServiceFabric.Services.Communication.Runtime.ICommunicationListener> * string -> Microsoft.ServiceFabric.Services.Communication.Runtime.ServiceInstanceListener
Public Sub New (createCommunicationListener As Func(Of StatelessServiceContext, ICommunicationListener), Optional name As String = "")

Parameters

createCommunicationListener
Func<StatelessServiceContext,ICommunicationListener>

Factory method for creating the communication listener.

name
String

Name of the communication listener. This parameter is optional if the Stateless Service has only one communication listener. If it is not given, the Name is set to DefaultName.

Applies to