Class SendingTimeAccuracyHandler
The global sending time accuracy handler.
Inheritance
System.Object
SendingTimeAccuracyHandler
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.MessageHandler.Global
Assembly: FixAntenna.Core.dll
Syntax
public class SendingTimeAccuracyHandler : AbstractGlobalMessageHandler, ISessionMessageHandler, IFixMessageListener
Fields
ErrorInvalidSendingTime
Declaration
public const string ErrorInvalidSendingTime = "Invalid sending time"
Field Value
Type | Description |
---|---|
System.String |
ErrorMissedSendingTime
Declaration
public const string ErrorMissedSendingTime = "Missed sending time"
Field Value
Type | Description |
---|---|
System.String |
ErrorSendingTimeAccuracy
Declaration
public const string ErrorSendingTimeAccuracy = "SendingTime accuracy problem"
Field Value
Type | Description |
---|---|
System.String |
Methods
IsTimeInBorder(Int64, Int64)
Declaration
public virtual bool IsTimeInBorder(long msgTimeMs, long srvTimeMs)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | msgTimeMs | |
System.Int64 | srvTimeMs |
Returns
Type | Description |
---|---|
System.Boolean |
IsTimeOutOfBorder(Int64, Int64)
Declaration
public virtual bool IsTimeOutOfBorder(long msgTimeMs, long srvTimeMs)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | msgTimeMs | |
System.Int64 | srvTimeMs |
Returns
Type | Description |
---|---|
System.Boolean |
OnNewMessage(FixMessage)
This method is invoked every time when FIX Engine receives application message.
Declaration
public override void OnNewMessage(FixMessage message)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | the incoming message |
Overrides
SetFixSession(IExtendedFixSession)
Sets the extended fix session.
Declaration
public override void SetFixSession(IExtendedFixSession fixSession)
Parameters
Type | Name | Description |
---|---|---|
IExtendedFixSession | fixSession | the extended fix session |
Overrides
ValidateSendingTime(DateTime)
Validates the sending time field(52 tag).
Declaration
public virtual bool ValidateSendingTime(DateTime sendingDate)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | sendingDate |
Returns
Type | Description |
---|---|
System.Boolean | true if need to call next handler |