• Version 1.7.1
Show / Hide Table of Contents

Memory-based Session Storage

Memory-based session storage is typically used to maintain a high-performance iLink 3 session when the persisting of a session state and messages to the file system is not required.

Switching to Memory-based Session Storage

To create such a session, the storageType parameter in the Session(SessionSettings, int, SessionStorageType, ulong, string, LogFactory) constructor has to be set to the MemoryBasedStorage value.

For these purposes, storageType parameter of the Session(SessionSettings, int, SessionStorageType, ulong, string, LogFactory) constructor is available. Once MemoryBasedStorage value will be specified as the value for the storageType parameter, session-related data will be logged into memory.

Example

SessionSettings settings = new();

using Session session = new (settings, marketSegmentId, SessionStorageType.MemoryBasedStorage);
In this article
Back to top Copyright © Onix Solutions.
Generated by DocFX