Interface IStorageFactory
Base storage factory interface. Provides ability to create incoming and outgoing storage.
To replace the standard implementation, use a storageFactory
parameter in properties file.
Namespace: FixAntenna.FixEngine.Storage
Assembly: FixAntenna.Core.dll
Syntax
public interface IStorageFactory
Methods
GetIncomingMessageStorage(SessionParameters)
Get incoming message storage instance.
Declaration
IMessageStorage GetIncomingMessageStorage(SessionParameters sessionParameters)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | sessionParameters | session parameters |
Returns
Type | Description |
---|---|
IMessageStorage | the incoming message storage |
GetOutgoingMessageStorage(SessionParameters)
Get outgoing message storage instance.
Declaration
IMessageStorage GetOutgoingMessageStorage(SessionParameters sessionParameters)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | sessionParameters | session parameters |
Returns
Type | Description |
---|---|
IMessageStorage | the outgoing message storage |
GetQueue(SessionParameters)
Get outgoing message queue.
Declaration
IQueue<FixMessageWithType> GetQueue(SessionParameters sessionParameters)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | sessionParameters | session parameters |
Returns
Type | Description |
---|---|
IQueue<FixMessageWithType> | the outgoing queue of messages |
LoadSessionParameters(SessionParameters, FixSessionRuntimeState)
Save session parameters.
Declaration
bool LoadSessionParameters(SessionParameters sessionParameters, FixSessionRuntimeState state)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | sessionParameters | session parameters |
FixSessionRuntimeState | state |
Returns
Type | Description |
---|---|
System.Boolean | true if parameters loaded |
SaveSessionParameters(SessionParameters, FixSessionRuntimeState)
Save session parameters.
Declaration
void SaveSessionParameters(SessionParameters sessionParameters, FixSessionRuntimeState state)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | sessionParameters | session parameters |
FixSessionRuntimeState | state |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if error occurred |