Enum FinCommServiceState

Namespace
Subsembly.FinTS
Assembly
Subsembly.FinTS.Core.dll

Enumerates the possible states of an instance of an IFinCommService implementation.

public enum FinCommServiceState

Fields

Connected = 1

There is an established connection. No transport error occured on this connection. In this state SendReceive(FinDialog, FinMessageBuffer) may be called in order to send a message, or Disconnect() may be called in order to orderly tear down the connection.

Disconnected = 0

There is currently no connection. In this state a new connection can be established by calling Connect(string, string, IFinFilter).

Error = 2

A transport error occured on an established connection. The connection is lost and cannot be used any more. In this state Disconnect() may be called to clear that condition and return to the Disconnected state. Or Connect(string, string, IFinFilter) may be called to immediately re-establish a connection. Calling SendReceive(FinDialog, FinMessageBuffer) in this state will throw an immediate FinCommServiceException.