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
Namespace: Copper.ServiceFabric.Services.Communication.Runtime
Assembly: Copper.Fabric.dll
Syntax
public sealed class ServiceInstanceListener
Constructors
View SourceServiceInstanceListener(Func<StatelessServiceContext, ICommunicationListener>, String)
Initializes a new instance of the Service
Declaration
public ServiceInstanceListener(Func<StatelessServiceContext, ICommunicationListener> createCommunicationListener, string name = "")
Parameters
Type | Name | Description |
---|---|---|
System. |
createCommunicationListener | Factory method for creating the communication listener. |
System. |
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 SourceCreateCommunicationListener
Gets the factory method for creating the communication listener.
Declaration
public Func<StatelessServiceContext, ICommunicationListener> CreateCommunicationListener { get; }
Property Value
Type | Description |
---|---|
System. |
The factory method for creating the communication listener. |
Remarks
The factory method takes in a Stateless
Name
Gets the name of the communication listener.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System. |
The name of the communication listener. |