ServiceInstanceListener Constructor
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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET