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
Namespace: Copper.Service
Assembly: Copper.Service.dll
Syntax
public class StatelessService : ServiceFabric.Services.Runtime.StatelessService
Constructors
View SourceStatelessService(StatelessServiceContext, IEnumerable<ServiceInstanceListener>)
Initializes a new instance of the StatelessService class.
Declaration
public StatelessService(StatelessServiceContext serviceContext, IEnumerable<ServiceInstanceListener> serviceInstanceListeners)
Parameters
| Type | Name | Description |
|---|---|---|
| StatelessServiceContext | serviceContext | The service context. |
| System.Collections.Generic.IEnumerable<ServiceInstanceListener> | serviceInstanceListeners | The service instance listeners. |
Methods
View SourceCreateServiceInstanceListeners()
Override this method to supply the communication listeners for the service instance.
Declaration
protected override IEnumerable<ServiceFabric.Services.Communication.Runtime.ServiceInstanceListener> CreateServiceInstanceListeners()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<Microsoft.ServiceFabric.Services.Communication.Runtime.ServiceInstanceListener> | A list of ServiceInstanceListeners. |