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.Service
    Assembly: Copper.Service.dll
    Syntax
    public 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

    Listener

    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.

    • View Source
    Back to top Generated by DocFX