Class StatelessService
Represents the Copper stateless reliable service base class. Derive from this class to implement a Copper based stateless reliable service.
Namespace: Copper.ServiceFabric.Services.Runtime
Assembly: Copper.Fabric.dll
Syntax
public abstract class StatelessService
Constructors
View SourceStatelessService(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 SourceContext
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 SourceCreateServiceInstanceListeners()
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. |