Ejemplo n.º 1
0
        /// <summary>
        /// Set the number of messages to cache for each symbol before the initial
        /// value arrives. This allows the subscription to recover when the initial
        /// value arrives late (after a subsequent trade or quote already arrived).
        /// For group subscription, a separate cache is used for each group member.
        /// The default is 10.
        /// </summary>
        /// <param name="cacheSize">
        /// The cache size to set.
        /// </param>
        public void setPreInitialCacheSize(int cacheSize)
        {
            // Verify that the native subscription has been allocated
            EnsurePeerCreated();

            // Call the native layer to set the cache size
            CheckResultCode(SubscriptionNativeMethods.mamaSubscription_setPreIntitialCacheSize(NativeHandle, cacheSize));
        }