Show / Hide Table of Contents

    Class StatelessService

    Represents the Copper stateless reliable service base class. Derive from this class to implement a Copper based stateless reliable service.

    Inheritance
    System.Object
    StatelessService
    StatelessService
    StatelessService
    StatelessService
    Namespace: Copper.ServiceFabric.Services.Runtime
    Assembly: Copper.Fabric.dll
    Syntax
    public abstract class StatelessService

    Constructors

    View Source

    StatelessService(StatelessServiceContext)

    Initializes a new instance of the StatelessService class.

    Declaration
    protected StatelessService(StatelessServiceContext context)
    Parameters
    Type Name Description
    StatelessServiceContext context

    A StatelessServiceContext that describes the context in which service is created.

    Properties

    View Source

    Context

    Gets the service context that this stateless service is operating under. It provides information like ServiceName, ServiceTypeName etc.

    Declaration
    public StatelessServiceContext Context { get; }
    Property Value
    Type Description
    StatelessServiceContext

    A StatelessServiceContext that describes the service context.

    Methods

    View Source

    CreateServiceInstanceListeners()

    Override this method to supply the communication listeners for the service instance.

    Declaration
    protected abstract IEnumerable<ServiceInstanceListener> CreateServiceInstanceListeners()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ServiceInstanceListener>

    A list of ServiceInstanceListeners.

    • View Source
    Back to top Generated by DocFX