ICommunicationListener Interface

Definition

Defines the base interface and the state machine contract for the communication listener for a Service Fabric Service.

public interface ICommunicationListener
type ICommunicationListener = interface
Public Interface ICommunicationListener
Derived

Methods

Abort()

This method causes the communication listener to close. Close is a terminal state and this method causes the transition to close ungracefully. Any outstanding operations (including close) should be canceled when this method is called.

CloseAsync(CancellationToken)

This method causes the communication listener to close. Close is a terminal state and this method allows the communication listener to transition to this state in a graceful manner.

OpenAsync(CancellationToken)

This method causes the communication listener to be opened. Once the Open completes, the communication listener becomes usable - accepts and sends messages.

Applies to