Show / Hide Table of Contents

    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.ServiceFabric.Services.Communication.Runtime
    Assembly: Copper.Fabric.dll
    Syntax
    public sealed class ServiceInstanceListener

    Constructors

    View Source

    ServiceInstanceListener(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 Source

    CreateCommunicationListener

    Gets the factory method for creating the communication listener.

    Declaration
    public Func<StatelessServiceContext, ICommunicationListener> CreateCommunicationListener { get; }
    Property Value
    Type Description
    System.Func<StatelessServiceContext, ICommunicationListener>

    The factory method for creating the communication listener.

    Remarks

    The factory method takes in a StatelessServiceContext and returns communication listener implementing ICommunicationListener.

    View Source

    Name

    Gets the name of the communication listener.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    The name of the communication listener.

    • View Source
    Back to top Generated by DocFX