Ejemplo n.º 1
0
        private void DoInspectCandidateMiss(T quote)
        {
            if (quote == null)
            {
                return;
            }

            if (quote.IsDeleted || quote.ExpirationTimestamp <= UnixTime.NowSeconds || quote.AvailableVolume <= 0)
            {
                _storageService.Remove(quote);
            }
        }
        public void Remove(T quote)
        {
            if (quote == null)
            {
                return;
            }

            // Purposely not adding try/catch semantics here - if the first call fails, we do not want to remove from the index. If the first call succeeds but the index
            // removal fails, we dont bother trying to re-add the primary back, as the index is just a pointer to the primary...
            _quoteStorageService.Remove(quote);
            _quoteIndexService.Remove(quote);
        }