FIX Session
A FIX session is a bi-directional stream of ordered messages between two parties within a continuous sequence number series. It is represented by the Session class.
Constructing Session
To create a session use one of Session's constructors.
For example:
var session = new Session("SenderCompId", "TargetCompId", ProtocolVersion.Fix42);
Configuring Session-Related Parameters
To configure session-related parameters the SessionSettings class should be used.
For example:
var sessionSettings = new SessionSettings
{
ResendingQueueSize = 2000
};
var session = new Session("SenderCompId", "TargetCompId", ProtocolVersion.Fix42, sessionSettings);
Shutting Down Session
To terminate the session gracefully, use the Dispose() method (explicitly or implicitly).
For example:
using Session session = new Session("SenderCompId", "TargetCompId", ProtocolVersion.Fix42);
// session-related logic