Esempio n. 1
0
        public override DynamicJsonValue ToJson()
        {
            var result = new IndexingSpeedPayload();

            foreach (IndexingSpeedItem item in IndexingSpeedPerDatabase)
            {
                result.Add(item);
            }

            return(result.ToJsonInternal());
        }
Esempio n. 2
0
        public override DynamicJsonValue ToJsonWithFilter(CanAccessDatabase filter)
        {
            var result = new IndexingSpeedPayload();

            foreach (IndexingSpeedItem item in IndexingSpeedPerDatabase)
            {
                if (filter(item.Database, requiresWrite: false))
                {
                    result.Add(item);
                }
            }

            return(result.ToJsonInternal());
        }