Class StandardMessageFactory
The standard message factory implementation.
This class implements GetBytes method for wrapping message.
Inheritance
System.Object
StandardMessageFactory
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.Session.Impl
Assembly: FixAntenna.Core.dll
Syntax
public class StandardMessageFactory : AbstractFixMessageFactory, IFixMessageFactory
Constructors
StandardMessageFactory()
Creates the StandardMessageFactory.
Declaration
public StandardMessageFactory()
Fields
ChecksumStub
Declaration
public static readonly byte[] ChecksumStub
Field Value
| Type | Description |
|---|---|
| System.Byte[] |
DeletedHeaderTrailerTags
Declaration
public static readonly int[] DeletedHeaderTrailerTags
Field Value
| Type | Description |
|---|---|
| System.Int32[] |
ExcludedFields
Declaration
public static readonly int[] ExcludedFields
Field Value
| Type | Description |
|---|---|
| System.Int32[] |
HeartbeatInterval
Declaration
protected int HeartbeatInterval
Field Value
| Type | Description |
|---|---|
| System.Int32 |
IncludeLastProcessed
Declaration
protected bool IncludeLastProcessed
Field Value
| Type | Description |
|---|---|
| System.Boolean |
RuntimeState
Declaration
protected FixSessionRuntimeState RuntimeState
Field Value
| Type | Description |
|---|---|
| FixSessionRuntimeState |
SendingTimeObj
Declaration
protected ISendingTime SendingTimeObj
Field Value
| Type | Description |
|---|---|
| ISendingTime |
SessionParameters
Declaration
protected SessionParameters SessionParameters
Field Value
| Type | Description |
|---|---|
| SessionParameters |
Methods
CompleteLogin(FixMessage)
Declaration
public virtual void CompleteLogin(FixMessage content)
Parameters
| Type | Name | Description |
|---|---|---|
| FixMessage | content |
CompleteMessage(String, FixMessage)
Completes the message content with necessarily fields.
Declaration
public override FixMessage CompleteMessage(string msgType, FixMessage content)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | msgType | the message type field |
| FixMessage | content | the content of message |
Returns
| Type | Description |
|---|---|
| FixMessage | the completed message |
Overrides
GetCurrentSendingTime()
Gets current sending time.
Declaration
public override byte[] GetCurrentSendingTime()
Returns
| Type | Description |
|---|---|
| System.Byte[] | bytes of sending time |
Overrides
GetLoginHeader()
Declaration
public virtual byte[] GetLoginHeader()
Returns
| Type | Description |
|---|---|
| System.Byte[] |
GetOutLogonFields()
Declaration
public virtual FixMessage GetOutLogonFields()
Returns
| Type | Description |
|---|---|
| FixMessage |
GetSendingTime()
Declaration
public override ISendingTime GetSendingTime()
Returns
| Type | Description |
|---|---|
| ISendingTime |
Overrides
GetSendingTime(Config)
Declaration
public virtual ISendingTime GetSendingTime(Config config)
Parameters
| Type | Name | Description |
|---|---|---|
| Config | config |
Returns
| Type | Description |
|---|---|
| ISendingTime |
Serialize(FixMessage, Nullable<ChangesType>, ByteBuffer, SerializationContext)
Wraps the sending message.
Declaration
public override void Serialize(FixMessage content, ChangesType? changesType, ByteBuffer buffer, SerializationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| FixMessage | content | the list of fix fields |
| System.Nullable<ChangesType> | changesType | the changesType |
| ByteBuffer | buffer | |
| SerializationContext | context |
Overrides
Serialize(MsgBuf, String, FixMessage, ByteBuffer, SerializationContext)
Wraps the sending message.
Declaration
public override void Serialize(MsgBuf buf, string msgType, FixMessage fixFields, ByteBuffer buffer, SerializationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| MsgBuf | buf | |
| System.String | msgType | the message type, if is null - the message send as is,
and if is '' - method updates body length, sequence number, sending time and checksum fields,
otherwise method wraps the |
| FixMessage | fixFields | the list of fix fields |
| ByteBuffer | buffer | |
| SerializationContext | context |
Overrides
Serialize(String, FixMessage, ByteBuffer, SerializationContext)
Declaration
public virtual void Serialize(string msgType, FixMessage fixFields, ByteBuffer buffer, SerializationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | msgType | |
| FixMessage | fixFields | |
| ByteBuffer | buffer | |
| SerializationContext | context |
SetRuntimeState(FixSessionRuntimeState)
Declaration
public override void SetRuntimeState(FixSessionRuntimeState runtimeState)
Parameters
| Type | Name | Description |
|---|---|---|
| FixSessionRuntimeState | runtimeState |
Overrides
SetSessionParameters(SessionParameters)
Setter for session parameters used to construct message headers.
Declaration
public override void SetSessionParameters(SessionParameters sessionParameters)
Parameters
| Type | Name | Description |
|---|---|---|
| SessionParameters | sessionParameters | the session parameters |