Class HandlerChain
The HandlerChain
provides the chain of responsibility pattern.
Implements
System.IDisposable
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 sealed class HandlerChain : AbstractSessionMessageHandler, ISessionMessageHandler, IFixMessageListener, ICompositeMessageHandlerListener, IDisposable
Constructors
HandlerChain()
Creates the HandlerChain
with composite message handler.
Declaration
public HandlerChain()
Fields
CompositeListener
Declaration
protected CompositeMessageHandler CompositeListener
Field Value
Type | Description |
---|---|
CompositeMessageHandler |
MaskedTags
Declaration
protected IMaskedTags MaskedTags
Field Value
Type | Description |
---|---|
IMaskedTags |
MessageHandlers
Declaration
protected IList<ISessionMessageHandler> MessageHandlers
Field Value
Type | Description |
---|---|
System.Collections.Generic.IList<ISessionMessageHandler> |
PostProcessMessageHandlers
Declaration
protected IList<IPostProcessMessageHandler> PostProcessMessageHandlers
Field Value
Type | Description |
---|---|
System.Collections.Generic.IList<IPostProcessMessageHandler> |
PreProcessMessageHandlers
Declaration
protected IList<PreProcessMessageHandler> PreProcessMessageHandlers
Field Value
Type | Description |
---|---|
System.Collections.Generic.IList<PreProcessMessageHandler> |
RawTags
Declaration
protected RawFixUtil.IRawTags RawTags
Field Value
Type | Description |
---|---|
RawFixUtil.IRawTags |
Methods
AddGlobalMessageHandler(AbstractGlobalMessageHandler)
Adds the global message handler. The handler adds to the end of handlers list.
Declaration
public void AddGlobalMessageHandler(AbstractGlobalMessageHandler globalMessageHandler)
Parameters
Type | Name | Description |
---|---|---|
AbstractGlobalMessageHandler | globalMessageHandler | the global message handler |
AddGlobalPostProcessMessageHandler(AbstractGlobalPostProcessSessionMessageHandler)
Adds the global message handler. The handler adds to the stert of handlers list.
Declaration
public void AddGlobalPostProcessMessageHandler(AbstractGlobalPostProcessSessionMessageHandler globalMessageHandler)
Parameters
Type | Name | Description |
---|---|---|
AbstractGlobalPostProcessSessionMessageHandler | globalMessageHandler | the global message handler |
AddGlobalPreProcessMessageHandler(PreProcessMessageHandler)
Declaration
public void AddGlobalPreProcessMessageHandler(PreProcessMessageHandler globalMessageHandler)
Parameters
Type | Name | Description |
---|---|---|
PreProcessMessageHandler | globalMessageHandler |
AddInSessionMessageListener(IFixMessageListener)
Sets listener to receive session level incoming messages.
Declaration
public void AddInSessionMessageListener(IFixMessageListener listener)
Parameters
Type | Name | Description |
---|---|---|
IFixMessageListener | listener | the user listener |
AddSessionMessageHandler(String, ISessionMessageHandler)
Adds the specific message handle.
Declaration
public void AddSessionMessageHandler(string msgType, ISessionMessageHandler messageHandler)
Parameters
Type | Name | Description |
---|---|---|
System.String | msgType | the message type |
ISessionMessageHandler | messageHandler | the message handler |
AddUserGlobalMessageHandler(AbstractUserGlobalMessageHandler)
Declaration
public void AddUserGlobalMessageHandler(AbstractUserGlobalMessageHandler userMessageHandler)
Parameters
Type | Name | Description |
---|---|---|
AbstractUserGlobalMessageHandler | userMessageHandler |
Dispose()
Declaration
public void Dispose()
IsNeedPreProcess()
Declaration
public bool IsNeedPreProcess()
Returns
Type | Description |
---|---|
System.Boolean |
OnMessage(MsgBuf)
Invoked when incoming message received.
Declaration
public void OnMessage(MsgBuf messageBuf)
Parameters
Type | Name | Description |
---|---|---|
MsgBuf | messageBuf | the message |
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
OnPostProcessMessage(MsgBuf)
Declaration
public void OnPostProcessMessage(MsgBuf message)
Parameters
Type | Name | Description |
---|---|---|
MsgBuf | message |
OnSessionStateChange(SessionState)
Declaration
public void OnSessionStateChange(SessionState sessionState)
Parameters
Type | Name | Description |
---|---|---|
SessionState | sessionState |
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
SetUserListener(IFixSessionListener)
Sets the user message compositeListener.
Declaration
public void SetUserListener(IFixSessionListener listener)
Parameters
Type | Name | Description |
---|---|---|
IFixSessionListener | listener | the session compositeListener |
Implements
System.IDisposable