forwardLogonAsInitiator Method (String, Int32, Int32, Message, Boolean)   Table of ContentLogout Method forward
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.10.1.0
Syntax
C#
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: Task
Task object that can be used to wait for the result of the asynchronous logon method.
Exceptions
ExceptionCondition
EngineExceptionThe FIX Connection cannot be established.
See Also