Class StandardFixSessionFactory
Standard session factory.
Engine used this factory for creation initiator and acceptor sessions.
User can replace current behaviour by using Set
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 |
---|---|---|
Session |
sessionParameters | the session configuration |
Returns
Type | Description |
---|---|
IFix |
the fix session |
Exceptions
Type | Condition |
---|---|
System. |
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 |
---|---|---|
Session |
details | |
IFix |
transport | the fix transport |
Returns
Type | Description |
---|---|
IFix |
the fix session |
Exceptions
Type | Condition |
---|---|
System. |
if the session cannot be created |
CreateInitiatorSession(SessionParameters)
Creates the initiator session.
Declaration
public virtual IFixSession CreateInitiatorSession(SessionParameters details)
Parameters
Type | Name | Description |
---|---|---|
Session |
details |
Returns
Type | Description |
---|---|
IFix |
the fix session |
Exceptions
Type | Condition |
---|---|
System. |
if the session cannot be created |
GetFactory(SessionParameters)
Declaration
public static IFixSessionFactory GetFactory(SessionParameters details)
Parameters
Type | Name | Description |
---|---|---|
Session |
details |
Returns
Type | Description |
---|---|
IFix |
SetFixSessionFactoryStrategy(IFixSessionFactoryStrategy)
Replace default strategy with own implementation.
Declaration
public static void SetFixSessionFactoryStrategy(IFixSessionFactoryStrategy astrategy)
Parameters
Type | Name | Description |
---|---|---|
IFix |
astrategy | strategy |