ISession.LogonAsInitiatorAsync Method |
Establishes FIX Connection asynchronously as
Initiator using a custom
Logon message with an optional
ResetSeqNumFlag (tag=141) field.
Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon (MsgType=A) message.
The method returns immediately without waiting the acknowledgment Logon message.
Namespace:
FIXForge.NET.FIX
Assembly:
FIXForge.NET.FIX.Engine-net-4.8_x64 (in FIXForge.NET.FIX.Engine-net-4.8_x64.dll) Version: 4.12.0.0
Syntax Task LogonAsInitiatorAsync(
string host,
int port,
int heartBtInt,
Message customLogonMsg,
bool setResetSeqNumFlagInFirstLogon
)
Parameters
- host
- Type: System.String
Counterparty's host name or address. - port
- Type: System.Int32
Counterparty's port number. - heartBtInt
- Type: System.Int32
Heartbeat interval (seconds). - customLogonMsg
- Type: FIXForge.NET.FIX.Message
Custom Logon (MsgType=A) message.
- setResetSeqNumFlagInFirstLogon
- Type: System.Boolean
Option to set the ResetSeqNumFlag(tag=141) in the initial Logon (MsgType=A) message.
Return Value
Type:
TaskTask object that can be used to wait for the result of the asynchronous logon method.
Exceptions See Also