The Session type exposes the following members.
Constructors
Methods
Name | Description | |
---|---|---|
BreakConnection |
Breaks the FIX Connection non-gracefully (without the exchange of Logout (MsgType=5) messages).
| |
ClearOutboundQueue |
Removes all messages from the outbound queue.
| |
Dispose()()()() | Terminates the FIX Session, explicitly releases resource and removes the object from Garbage Collector. | |
Dispose(Boolean) | Releases the unmanaged resources used by the Session and optionally releases the managed resources | |
Equals | (Inherited from Object.) | |
Finalize | Perform cleanup operations on unmanaged resources held by the current Session object before the object is destroyed. (Overrides Object..::..Finalize()()()().) | |
FindSentMessage |
Finds the sent FIX message by the given message sequence number. Returns null if the message is not found.
| |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
LogonAsAcceptor |
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. | |
LogonAsInitiator(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. | |
LogonAsInitiator(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. | |
LogonAsInitiator(String, Int32, Int32) |
Establishes FIX Connection as Initiator.
Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon message. | |
LogonAsInitiator(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. | |
LogonAsInitiator(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. | |
LogonAsInitiator(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. | |
Logout()()()() |
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. | |
Logout(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. | |
Logout(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. | |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
OnErrorEvent | Called when Error condition is detected. | |
OnInboundApplicationMsgEvent | ||
OnInboundSessionMsgEvent | Called when Session-level message is received. | |
OnMessageResending | ||
OnOutboundApplicationMsgEvent | ||
OnOutboundSessionMsgEvent | ||
OnStateChangeEvent | ||
OnWarningEvent | ||
ResetLocalSequenceNumbers |
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.
| |
ResetSequenceNumbersViaLogonExchange |
Sends an intra-connection Logon (A) message with the ResetSeqNumFlag (141) flag set.
| |
Send |
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. | |
SendTestRequest | Sends the Test Request <1> message. | |
ToString | Returns a string that represents the current session. (Overrides Object..::..ToString()()()().) |
Properties
Name | Description | |
---|---|---|
CounterpartyHost | Gets the counterparty host name or IP address. | |
CounterpartyIpAddress | Gets the counterparty IP address. | |
CounterpartyPort | Gets the counterparty port number. | |
Dialect | FIX dialect used by the session. | |
Encryption | Method of encryption | |
HeartBtInt |
Gets the Heartbeat interval (seconds, HeartBtInt (tag 108) field value).
| |
InboundMessageLogFilter | Incoming message types to be filtered out from the logs. | |
InSeqNum | Gets or sets the expected sequence number of the next incoming message. | |
KeepSequenceNumbersBetweenFixConnections | Option to keep sequence numbers after the exchange of Logout (MsgType=5) messages. | |
ListenPort |
Port to listen on for incoming connections in acceptor mode.
| |
LogInboundMessages |
Option to log incoming messages.
| |
LogOutboundMessages |
Option to log outgoing messages.
| |
OutboundMessageLogFilter | Outgoining message types to be filtered out from the logs. | |
OutboundQueueCount | Number of messages in the outbound queue. | |
OutSeqNum | Gets or sets the sequence number of the next outgoing message. | |
ResetLocalSequenceNumbersOnLogon | Option to automatically reset the local sequence numbers to 1 during every logon. | |
Role | Gets the session role. | |
SenderCompID |
Gets the assigned value used to identify firm sending message (SenderCompID (49)
field value in outgoing messages).
| |
SenderLocationID |
Value of SenderLocationID (142) field for all outgoing messages.
| |
SenderSubID |
Value of SenderSubID (50) field for all outgoing messages.
| |
Ssl | SSL encryption settings. | |
State | Session's state. | |
StorageID |
Session's ID in the Session Storage.
| |
StorageType |
Session's storage type.
| |
TargetCompID |
Assigned value used to identify receiving firm (TargetCompID (56) field value in outgoing messages).
| |
TargetLocationID |
Value of TargetLocationID (143) field for all outgoing messages.
| |
TargetSubID |
Value of TargetSubID (57) field for all outgoing messages.
| |
Version | Gets the session FIX version. |
Events
Name | Description | |
---|---|---|
ErrorEvent | Error condition is detected. | |
InboundApplicationMsgEvent | Application-level message is received from the counterparty. | |
InboundSessionMsgEvent | Session-level message is received. | |
MessageResending | Sent application-level message is about to be resent to the counterparty. | |
OutboundApplicationMsgEvent | Application-level message will be sent to the counterparty. | |
OutboundSessionMsgEvent | Session-level message will be sent to the counterparty. | |
StateChangeEvent | Session state is changed. | |
WarningEvent | Warning condition is detected. |