• Version 1.15.2
Show / Hide Table of Contents

Interface IMessage

Generic FIX Message.

Inherited Members
IFieldSet.GetFields()
IFieldSet.Remove(int)
IFieldSet.IsAbsentOrEmpty(int)
IFieldSet.Contains(int)
IFieldSet.Contains(int, bool)
IFieldSet.GetChar(int)
IFieldSet.TryGetChar(int, out char)
IFieldSet.Set(int, char)
IFieldSet.GetInteger(int)
IFieldSet.TryGetInteger(int, out int)
IFieldSet.Set(int, int)
IFieldSet.GetUInteger(int)
IFieldSet.TryGetUInteger(int, out uint)
IFieldSet.Set(int, uint)
IFieldSet.GetLong(int)
IFieldSet.TryGetLong(int, out long)
IFieldSet.Set(int, ulong)
IFieldSet.GetULong(int)
IFieldSet.TryGetULong(int, out ulong)
IFieldSet.Set(int, long)
IFieldSet.GetDouble(int)
IFieldSet.TryGetDouble(int, out double)
IFieldSet.Set(int, double)
IFieldSet.Set(int, double, int)
IFieldSet.GetDecimal(int)
IFieldSet.TryGetDecimal(int, out decimal)
IFieldSet.Set(int, decimal)
IFieldSet.Set(int, decimal, int)
IFieldSet.GetTimestamp(int)
IFieldSet.GetTimestamp(int, out TimestampFormat)
IFieldSet.GetHighResolutionTimestamp(int)
IFieldSet.GetHighResolutionTimestamp(int, out TimestampFormat)
IFieldSet.GetTimeSpan(int)
IFieldSet.GetTimeSpan(int, out TimeSpanFormat)
IFieldSet.GetHighResolutionTimeSpan(int)
IFieldSet.GetHighResolutionTimeSpan(int, out TimeSpanFormat)
IFieldSet.TryGetTimestamp(int, out DateTime)
IFieldSet.TryGetTimestamp(int, out DateTime, out TimestampFormat)
IFieldSet.TryGetHighResolutionTimestamp(int, out HighResolutionTimestamp)
IFieldSet.TryGetHighResolutionTimestamp(int, out HighResolutionTimestamp, out TimestampFormat)
IFieldSet.TryGetTimeSpan(int, out TimeSpan)
IFieldSet.TryGetTimeSpan(int, out TimeSpan, out TimeSpanFormat)
IFieldSet.TryGetHighResolutionTimeSpan(int, out HighResolutionTimeSpan)
IFieldSet.TryGetHighResolutionTimeSpan(int, out HighResolutionTimeSpan, out TimeSpanFormat)
IFieldSet.Set(int, DateTime)
IFieldSet.Set(int, DateTime, TimestampFormat)
IFieldSet.Set(int, in HighResolutionTimestamp)
IFieldSet.Set(int, in HighResolutionTimestamp, TimestampFormat)
IFieldSet.Set(int, TimeSpan)
IFieldSet.Set(int, TimeSpan, TimeSpanFormat)
IFieldSet.Set(int, in HighResolutionTimeSpan)
IFieldSet.Set(int, in HighResolutionTimeSpan, TimeSpanFormat)
IFieldSet.this[int]
IFieldSet.Get(int)
IFieldSet.TryGet(int, out string)
IFieldSet.Set(int, string)
IFieldSet.Get(int, StringBuilder)
IFieldSet.TryGet(int, StringBuilder)
IFieldSet.Set(int, StringBuilder)
IFieldSet.GetSpan(int)
IFieldSet.TryGetSpan(int, out ReadOnlySpan<byte>)
IFieldSet.Set(int, ReadOnlySpan<byte>)
IFieldSet.GetBytes(int)
IFieldSet.TryGetBytes(int, out byte[])
IFieldSet.Set(int, byte[])
IFieldSet.Set(int, byte[], int, int)
IFieldSet.GetFlag(int)
IFieldSet.TryGetFlag(int, out bool)
IFieldSet.SetFlag(int, bool)
IFieldSet.Set(int, bool)
IFieldSet.HasGroup(int)
IFieldSet.GetGroup(int)
IFieldSet.TryGetGroup(int, out Group)
IFieldSet.SetGroup(int, int)
IFieldSet.NumberOfGroups
IFieldSet.FieldCount
IFieldSet.ToString(char, FixStringFormat)
IFieldSet.GetGroupsEnumerator()
IFieldSet.CompareFieldValue(int, string)
IEnumerable<Field>.GetEnumerator()
Namespace: OnixS.Fix
Assembly: OnixS.Fix.Engine.dll
Syntax
public interface IMessage : IFieldSet, IEnumerable<Field>, IEnumerable

Properties

IsFlatMessage

Returns true if this is a FlatMessage instance, otherwise - false.

Declaration
bool IsFlatMessage { get; }
Property Value
Type Description
bool

true if this is a FlatMessage instance, otherwise - false

SenderCompId

The SenderCompID (tag 49) field value.

Declaration
string SenderCompId { get; }
Property Value
Type Description
string

SenderCompID (tag 49) field value

SeqNum

Message sequence number - the MsgSeqNum (tag 34) field value.

Declaration
int SeqNum { get; set; }
Property Value
Type Description
int

Message sequence number

TargetCompId

The TargetCompID (tag 56) field.

Declaration
string TargetCompId { get; }
Property Value
Type Description
string

TargetCompID (tag 56) field value

Type

Message type - the MsgType (tag 35) field value.

Declaration
string Type { get; }
Property Value
Type Description
string

Message type

Version

FIX Protocol version.

Declaration
ProtocolVersion Version { get; }
Property Value
Type Description
ProtocolVersion

FIX Protocol version

Methods

Clone()

Declaration
IMessage Clone()
Returns
Type Description
IMessage

CompareType(char)

Returns true if the message type value is equal to the given char value, otherwise it returns false. The method can help to write GC-free code.

Declaration
bool CompareType(char type)
Parameters
Type Name Description
char type

Message type to compare

Returns
Type Description
bool

True if the message type value is equal to the given string value

CompareType(string)

Returns true if the message type value is equal to the given string value, otherwise it returns false. The method can help to write GC-free code.

Declaration
bool CompareType(string type)
Parameters
Type Name Description
string type

Message type to compare

Returns
Type Description
bool

True if the message type value is equal to the given string value

GetStructuredMessage(IMessageInfoDictionary, MessageValidationFlags)

Returns the Message instance create from the given FlatMessage.

Declaration
Message GetStructuredMessage(IMessageInfoDictionary dictionary, MessageValidationFlags parsingFlags)
Parameters
Type Name Description
IMessageInfoDictionary dictionary

Dictionary to be used during the Message creation

MessageValidationFlags parsingFlags

Parsing flags

Returns
Type Description
Message

Message instance

IsSessionLevel()

Returns true if this is a session-level message, otherwise - false.

Declaration
bool IsSessionLevel()
Returns
Type Description
bool

true if this is a session-level message, otherwise - false

ToRawFixString()

Returns string representation of the message. This method will re-calculate the BodyLength and Checksum according to the message.

Declaration
string ToRawFixString()
Returns
Type Description
string

string representation of the message

In this article
Back to top Copyright © Onix Solutions.
Generated by DocFX