Class StandardFixSessionFactory
Standard session factory. Engine used this factory for creation initiator and acceptor sessions. User can replace current behaviour by using SetFixSessionFactoryStrategy(IFixSessionFactoryStrategy) method.
Inheritance
System.Object
StandardFixSessionFactory
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FixAntenna.FixEngine
Assembly: FixAntenna.Core.dll
Syntax
public class StandardFixSessionFactory : IFixSessionFactory
Methods
CreateAcceptorSession(SessionParameters)
Creates the acceptor session.
Declaration
public virtual IFixSession CreateAcceptorSession(SessionParameters sessionParameters)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | sessionParameters | the session configuration |
Returns
Type | Description |
---|---|
IFixSession | the fix session |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if the session cannot be created |
CreateAcceptorSession(SessionParameters, IFixTransport)
Creates the acceptor session.
Declaration
public virtual IFixSession CreateAcceptorSession(SessionParameters details, IFixTransport transport)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | details | |
IFixTransport | transport | the fix transport |
Returns
Type | Description |
---|---|
IFixSession | the fix session |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if the session cannot be created |
CreateInitiatorSession(SessionParameters)
Creates the initiator session.
Declaration
public virtual IFixSession CreateInitiatorSession(SessionParameters details)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | details |
Returns
Type | Description |
---|---|
IFixSession | the fix session |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if the session cannot be created |
GetFactory(SessionParameters)
Declaration
public static IFixSessionFactory GetFactory(SessionParameters details)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | details |
Returns
Type | Description |
---|---|
IFixSessionFactory |
SetFixSessionFactoryStrategy(IFixSessionFactoryStrategy)
Replace default strategy with own implementation.
Declaration
public static void SetFixSessionFactoryStrategy(IFixSessionFactoryStrategy astrategy)
Parameters
Type | Name | Description |
---|---|---|
IFixSessionFactoryStrategy | astrategy | strategy |