Class CompositeMessageHandler
The composite message handler, provides the custom message type handling. For handling specific message type, use AddSessionMessageHandler(String, ISessionMessageHandler) with specific handler.
Inheritance
System.Object
CompositeMessageHandler
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
Assembly: FixAntenna.Core.dll
Syntax
public class CompositeMessageHandler : AbstractGlobalMessageHandler, ISessionMessageHandler, IFixSessionListener, IFixMessageListener
Methods
AddSessionMessageHandler(String, ISessionMessageHandler)
Adds the message handler for message type.
Declaration
public virtual void AddSessionMessageHandler(string msgType, ISessionMessageHandler messageHandler)
Parameters
Type | Name | Description |
---|---|---|
System.String | msgType | the message type |
ISessionMessageHandler | messageHandler | the message handler |
AddUserSessionMessageListener(IFixMessageListener)
Sets listener to receive session level incoming messages.
Declaration
public virtual void AddUserSessionMessageListener(IFixMessageListener listener)
Parameters
Type | Name | Description |
---|---|---|
IFixMessageListener | listener | the user listener |
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
OnSessionStateChange(SessionState)
This method is invoked every time when Session is changed.
Declaration
public virtual void OnSessionStateChange(SessionState sessionState)
Parameters
Type | Name | Description |
---|---|---|
SessionState | sessionState | new session state |
SetUserListener(IFixSessionListener)
Sets the user handler. The user handler calls if custom message handler is no exists.
Declaration
public virtual void SetUserListener(IFixSessionListener listener)
Parameters
Type | Name | Description |
---|---|---|
IFixSessionListener | listener | the user listener |