Class InitiatorFixSession
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FixAntenna.FixEngine.Session
Assembly: FixAntenna.Core.dll
Syntax
public class InitiatorFixSession : AbstractFixSession, IExtendedFixSession, IFixSession, ISessionStateListenSupport
Constructors
InitiatorFixSession(IFixMessageFactory, SessionParameters, HandlerChain)
Creates the InitiatorFIXSession.
Declaration
public InitiatorFixSession(IFixMessageFactory factory, SessionParameters sessionParameters, HandlerChain fixSessionListener)
Parameters
| Type | Name | Description |
|---|---|---|
| IFixMessageFactory | factory | |
| SessionParameters | sessionParameters | |
| HandlerChain | fixSessionListener |
Methods
Connect()
Connects to remote counterparty, if initiator or accepts incoming connection if acceptor.
Declaration
public override void Connect()
Overrides
Exceptions
| Type | Condition |
|---|---|
| System.IO.IOException | I/O exception if error occurred |
ConnectInternal()
Declaration
public virtual void ConnectInternal()
Disconnect(String)
Disconnect the session.
The method sends the logof message, if response is not received during the HBI, shutdown the session.
Declaration
public override void Disconnect(string reason)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | reason | the reason, if parameter is not null, the logof message will be send with 58=reason. |
Overrides
See Also
Disconnect(System.String)
Dispose()
Declaration
public override void Dispose()
Overrides
GetTransport(String, Int32, SessionParameters)
Gets transport.
Declaration
public virtual IFixTransport GetTransport(string host, int port, SessionParameters sessionParameters)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | host | the host |
| System.Int32 | port | the port |
| SessionParameters | sessionParameters | the session parameters |
Returns
| Type | Description |
|---|---|
| IFixTransport |
Init()
Initialize FIX session. This allows to put messages to session. These messages will be send after connect.
Declaration
public override void Init()
Overrides
Exceptions
| Type | Condition |
|---|---|
| System.IO.IOException | I/O exception if error occurred |
InitTransport()
Declaration
public virtual void InitTransport()
IsActive()
Returns true, if session is in active state.
Declaration
public virtual bool IsActive()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Reject(String)
Unsupported for InitiatorFIXSession. Always throws IllegalStateException.
Declaration
public override void Reject(string reason)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | reason |
Overrides
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException |
See Also
Reject(System.String)
SetSessionState(SessionState)
Sets session state.
Declaration
public override void SetSessionState(SessionState sessionState)
Parameters
| Type | Name | Description |
|---|---|---|
| SessionState | sessionState | the new session state |