The Session type exposes the following members.

Constructors

Methods

  NameDescription
Public methodBreakConnection
Breaks the FIX Connection non-gracefully (without the exchange of Logout (MsgType=5) messages).
Public methodClearOutboundQueue
Removes all messages from the outbound queue.
Public methodDispose()()()()
Terminates the FIX Session, explicitly releases resource and removes the object from Garbage Collector.
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the Session and optionally releases the managed resources
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Perform cleanup operations on unmanaged resources held by the current Session object before the object is destroyed.
(Overrides Object..::..Finalize()()()().)
Public methodFindSentMessage
Finds the sent FIX message by the given message sequence number. Returns null if the message is not found.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLogonAsAcceptor
Establishes FIX Connection as Acceptor.

Acceptor is the receiving party of the FIX session. It listens for the incoming connection on the pre-defined port. The acceptor has responsibility to perform first level authentication and formally declare the connection request "accepted" through transmission of an acknowledgment Logon message.

Public methodLogonAsInitiator(String, Int32)
Establishes FIX Connection as Initiator using the default heartbeat value.

Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon message.

The heartbeat interval will be 30 seconds.

Public methodLogonAsInitiator(String, Int32, Boolean)
Establishes FIX Connection as Initiator using the default heartbeat value, optionally sets ResetSeqNumFlag(141) field in the initial Logon(A) message.

Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon(A) message.

The heartbeat interval will be 30 seconds.

Public methodLogonAsInitiator(String, Int32, Int32)
Establishes FIX Connection as Initiator.

Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon message.

Public methodLogonAsInitiator(String, Int32, Int32, Message)
Establishes FIX Connection as Initiator using the custom Logon message.

Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon message.

Public methodLogonAsInitiator(String, Int32, Int32, Boolean)
Establishes FIX Connection as Initiator.

Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon (A) message.

Public methodLogonAsInitiator(String, Int32, Int32, Message, Boolean)
Establishes FIX Connection as Initiator using a custom Logon message with an optional ResetSeqNumFlag(141) field.

Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon message.

Public methodLogout()()()()
Terminates the FIX Connection.

The initial Logout message is sent to the conterparty and the method blocks until the acknowledgement Logout message is received or the Heartbeat interval is elapsed.

Public methodLogout(String)
Terminates the FIX Connection.

The initial Logout message is sent to the conterparty and the method blocks until the acknowledgement Logout message is received.

Public methodLogout(Message)
Terminates the FIX Connection.

The initial Logout message is sent to the conterparty and the method blocks until the acknowledgement Logout message is received.

Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnErrorEvent
Called when Error condition is detected.
Protected methodOnInboundApplicationMsgEvent
Protected methodOnInboundSessionMsgEvent
Called when Session-level message is received.
Protected methodOnMessageResending
Protected methodOnOutboundApplicationMsgEvent
Protected methodOnOutboundSessionMsgEvent
Protected methodOnStateChangeEvent
Protected methodOnWarningEvent
Public methodResetLocalSequenceNumbers
Resets the local sequence numbers to 1 and backups the current log files (if file-based session storage is used). This method can be called only when the session is disconnected.
Public methodResetSequenceNumbersViaLogonExchange
Sends an intra-connection Logon (A) message with the ResetSeqNumFlag (141) flag set.
Public methodSend
Sends the message to the counterparty.

This method is asynchronous. As soon as a session is created it is possible to start sending messages via the session. If the session is not established, the messages will be sent when the connection is established with the counterparty.

Public methodSendTestRequest
Sends the Test Request <1> message.
Public methodToString
Returns a string that represents the current session.
(Overrides Object..::..ToString()()()().)

Properties

  NameDescription
Public propertyCounterpartyHost
Gets the counterparty host name or IP address.
Public propertyCounterpartyIpAddress
Gets the counterparty IP address.
Public propertyCounterpartyPort
Gets the counterparty port number.
Public propertyDialect
FIX dialect used by the session.
Public propertyEncryption
Method of encryption
Public propertyHeartBtInt
Gets the Heartbeat interval (seconds, HeartBtInt (tag 108) field value).
Public propertyInboundMessageLogFilter
Incoming message types to be filtered out from the logs.
Public propertyInSeqNum
Gets or sets the expected sequence number of the next incoming message.
Public propertyKeepSequenceNumbersBetweenFixConnections
Option to keep sequence numbers after the exchange of Logout (MsgType=5) messages.
Public propertyListenPort
Port to listen on for incoming connections in acceptor mode.
Public propertyLogInboundMessages
Option to log incoming messages.
Public propertyLogOutboundMessages
Option to log outgoing messages.
Public propertyOutboundMessageLogFilter
Outgoining message types to be filtered out from the logs.
Public propertyOutboundQueueCount
Number of messages in the outbound queue.
Public propertyOutSeqNum
Gets or sets the sequence number of the next outgoing message.
Public propertyResetLocalSequenceNumbersOnLogon
Option to automatically reset the local sequence numbers to 1 during every logon.
Public propertyRole
Gets the session role.
Public propertySenderCompID
Gets the assigned value used to identify firm sending message (SenderCompID (49) field value in outgoing messages).
Public propertySenderLocationID
Value of SenderLocationID (142) field for all outgoing messages.
Public propertySenderSubID
Value of SenderSubID (50) field for all outgoing messages.
Public propertySsl
SSL encryption settings.
Public propertyState
Session's state.
Public propertyStorageID
Session's ID in the Session Storage.
Public propertyStorageType
Session's storage type.
Public propertyTargetCompID
Assigned value used to identify receiving firm (TargetCompID (56) field value in outgoing messages).
Public propertyTargetLocationID
Value of TargetLocationID (143) field for all outgoing messages.
Public propertyTargetSubID
Value of TargetSubID (57) field for all outgoing messages.
Public propertyVersion
Gets the session FIX version.

Events

  NameDescription
Public eventErrorEvent
Error condition is detected.
Public eventInboundApplicationMsgEvent
Application-level message is received from the counterparty.
Public eventInboundSessionMsgEvent
Session-level message is received.
Public eventMessageResending
Sent application-level message is about to be resent to the counterparty.
Public eventOutboundApplicationMsgEvent
Application-level message will be sent to the counterparty.
Public eventOutboundSessionMsgEvent
Session-level message will be sent to the counterparty.
Public eventStateChangeEvent
Session state is changed.
Public eventWarningEvent
Warning condition is detected.

See Also