예제 #1
0
        public override DynamicJsonValue ToJson()
        {
            var result = new IndexingSpeedPayload();

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

            return(result.ToJsonInternal());
        }
예제 #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());
        }