Class ServiceInstanceListener
Represents the communication listener and its properties for a Stateless Service instance. Endpoints given out by the communication listener are associated with the name of the communication listener.
Inheritance
System.Object
ServiceInstanceListener
Namespace: Copper.Service
Assembly: Copper.Service.dll
Syntax
public class ServiceInstanceListener
Constructors
View SourceServiceInstanceListener(Func<StatelessServiceContext, ICommunicationListener>, String)
Initializes a new instance of the ServiceInstanceListener class.
Declaration
public ServiceInstanceListener(Func<StatelessServiceContext, ICommunicationListener> createCommunicationListener, string name = "")
Parameters
Type | Name | Description |
---|---|---|
System.Func<StatelessServiceContext, ICommunicationListener> | createCommunicationListener | Factory method for creating the communication listener. |
System.String | name | 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. |
Properties
View SourceListener
Gets the service instance listener.
Declaration
public ServiceFabric.Services.Communication.Runtime.ServiceInstanceListener Listener { get; }
Property Value
Type | Description |
---|---|
Microsoft.ServiceFabric.Services.Communication.Runtime.ServiceInstanceListener | The service instance listener. |